#include <iostream>
using namespace std;
int main(void){
    string S;
    cin>>S;
    for(int i=0;i<3;i++){
        if(S[i]=='7'){
            cout<<"Yes"<<endl;
            return 0;
        }
    }
    cout<<"No"<<endl;
}
