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

int main(){
    sting N;cin>>N;
    for(int i=0;i<3;i++){
        if(N.at(i)=='7'){
            cout<<"Yes"<<endl;
            return 0;
        }
    }
    cout<<"No"<<endl;
}
