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

int main() {
  string s;
  bool flag = false;
  cin >> s;
  
  for(int i = 0; i < s.size(); i++){
    if(s.at(i) == '7')
      flag = true;
  }
  
  if(flag)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
