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

	int main(){
    int n,k,l,o;
      cin>>n;
      n/100==k;
        (n-k*100)/10==l;
        (n-k*100-l*10)==o;
      if(k==7||l==7||o==7){
      cout<<"Yes"<<endl;
      }
      else{cout<<"No"<<endl;}
    }