#include <iostream>
using namespace std;

int main() {
    int x, dig;
    cin >> x;
    for(int i =0; i<3; i++){
        dig = x % 10;
        if (dig == 7){
            cout << "Yes";
            return 0;
        }
        x = x / 10;
    }
    cout << "No";
    return 0;
}
