#include<bits/stdc++.h>
#define endl '\n'

using namespace std;

string s;

int main() {
    ios_base::sync_with_stdio(0);

    cin >> s;

    for(int i=0; i < s.size(); ++i) {
        if(s[i] == '7') {
            cout << "Yes" << endl;
            return 0;
        }
    }

    cout << "No" << endl;

    return 0;
}
