#include <bits/stdc++.h>
using namespace std;

int main() {
  int N;
  cin >> N;
  string str = to_string(N);

  for (int i = 0; i < 3; i++) {
    if (str.at(i) == "7") {
      cout << "Yes" << endl;
      return 0;
    }
  }
  cout << "No" << endl;
}