#include <bits/stdc++.h>
using namespace std;
 
int main(){ 
    int n;
    cin>>n;
    int ans=0;
    if(n%10==7)ans++;
    if((n/10)%10==7)ans++;
    if(n/100==7)ans++;

    if(ans!=0)cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
 
    return 0;
}