    //Bismillah hirrahmanir Rahim
    #include<bits/stdc++.h>
    #define ll long long
    #define pb push_back
    #define dbug printf("I am here\n");
    #define Fast ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
    using namespace std;

main() {
    Fast
 string a;
 cin>>a;
 int cnt=0;
 for(int i=0;i<a.size();i++){
    if(a[i]=='7'){
            cnt++;
            cout<<"Yes"<<endl;
           break;
     }
 }
  if(cnt==0) cout<<"No"<<endl;
	return 0;
}
