#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, M;
  cin >> N;
  string strN = to_string(N);
  for (int i = 0; i < 3; i++) {
    if (strN[i] == '7') {
      cout << "Yes" << endl;
      return 0;
    }
  }
  cout << "No" << endl;
  return 0;
}
