#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N;
  sin >> N;
  int a,b,c;
  
  if(N%10 == 7){
    cout << "Yes" << endl;
   }
  else if((N-N%10)%100 == 7){
    cout << "Yes" << endl;
  }
  else if(N/100.0 == 7){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
   }
    
    
}
