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

int main(){
  int N,a,b,c;
  cin>>N;
  a=N%10;
  if(a==7){
    cout<<"Yes"<<endl;
    return 0;
  }
  N=N/10;
  b=N%10;
  if(b==7){
    cout<<"Yes"<<endl; 
    return 0;
  }
  
   N=N/10;
  c=N%10;
    if(c==7) {
      cout<<"Yes"<<endl; 
      return 0;
    }
  cout<<"No"<<endl;
  return 0;
}