#include<iostream>
using namespace std;
int main(){
    int n;
    cin>>n;
    while(n!=0){
        int digi=n%10;
        if(digi==7)
            cout<<"Yes";
        n=n/10;
    }
    cout<<"No";
    return 0;
}