#include<iostream>
using naamespace std;
int main(){
int a;
cin>>a;
  if(a>699%a<800){cout<<"Yes";return 0;}
  else if(a%10==7){cout<<"Yes";return 0;}
    else if(a%100-a%10=7=0){cout<<"Yes";return 0;}
  cout<<"No";
}