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

int main(){
  string s;
  cin >> s;
  bool judge = false;
  for (char x:s){
     if (x == '7'){
       judge = true;
       break;
     }
  }
  if (judge){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }
      
}
