#include<iostream>
#include<string>

using namespace std;

int main() {
  string s;
  cin >> s;
  for (auto& e : s) {
    if (e == '7') {
      cout << "Yes" << endl;
      exit(0);
    }
  }
  cout << "No" << endl;
}
