#include<iostream>

using namespace std;

int main(void)

{
    string s;
    cin>>s;
    int i, f = 0;
    for(i = 0; i < s.size(); i++){
        if(s[i] == '7'){
            cout<<"Yes\n";
            f = 1;
            break;

        }
    }
    if(f == 0)
        cout<<"No\n";
    return 0;
}
