#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<iomanip>
#include<cmath>

using namespace std;

int main()
{
    int N;
    cin>>N;
    for(int i=0;i<3;i++){
        int a;
        a=N%10;
        if(a==7){
            cout<<"Yes"<<endl;
            exit(0);
        }
        N/=10;
    }
    cout<<"No"<<endl;
}