#include <bits/stdc++.h>
using namespace std;
signed main(){
    bool f = false;
    int n;
    cin>>n;
    while(n>0){
        if(n%10 == 7){
            f = true;
        }
        n/=10;
    }
    if(f){
        cout<<"Yes\n";
    } else {
        cout<<"No\n";
    }
    return(0);
}