#include <bits/stdc++.h>
using namespace std;
int main() {
    string S;
    cin >> S;
    string messages = "No";
    for(int i = 0; i < 3; i++) {
        if(S[i] == '7') {
            messages = "Yes";
        }
    }
    cout << messages << endl;
    return 0;
}
