#include <iostream>
#include <string>
using namespace std;
int main(void){
  string s;
  cin >> s;
  
  bool ans = false;
  
  for(int i=0;i<3;i++){
    if(s[i] == '7') ans = true;
  }
  
  if(ans) cout << "Yes" << endl;
  else cout << "No" << endl;
  
  return 0;
}
