#include <bits/stdc++.h>
using namespace std;

int main(void){
    string n; cin >> n;
    
    for(int i = 0; i < int(n.size()); i++){
        if(n.at(i) == '7'){
            cout << "Yes" << endl;
            return 0;
        }
    }
    
    cout << "No" << endl;
    
    
    
}
