#include<iostream>
#include<string>
using namespace std;

int main(){
    string S;
    cin >> S;

    bool IncludeSeven = false;
    for(int i=0;i<3;i++){
        if(S[i] == '7'){
            IncludeSeven = true;
        }
    }
    if(IncludeSeven == true){
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl;
    }
    return 0;
}