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

int main(){

    int x, y, z, tmp;

    cin >> x;

    if(x % 10 == 7){
        cout << "Yes" << endl;
    }else{
        y = x / 10;
        if(y % 10 == 7){
            cout << "Yes" << endl;
        }else{
            z = y / 10;
            if(z % 10 == 7){
                cout << "Yes" << endl;
            }else{
                cout << "No" << endl;
            }
        }
    }
    return 0;

}