#include <iostream>
using namespace std;
 
    
    
int main(){
  int x,a,b,c;
  cin>>x;
  a=x/100;
  b=x%100/10;
  c=x%10;
  if ((a==7)||(b==7)||(c==7))
  {
    cout<<"Yes"<<endl;
  }
  else
  {
    cout<<"No"<<endl;
  }
  
    return 0;
}