#include<iostream>
using namespace std;

int main(){
    int n;
    cin>>n;
    while(1){
        if(n%10==7){
            cout<<"Yes"<<endl;
            return 0;
        }
        n=n/10;
        if(n==0){
            break;
        }
    }
    cout<<"No"<<endl;
    return 0;
}