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

int main() {
    char N;
    // string N_str;
    // cin >> N;
    for (int i = 0; i < 3; i++) {
        cin >> N;
        if (N == '7') {
            cout << "Yes" << endl;
            return 0;
        }
    }
    cout << "No" << endl;
}
