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

int main() {
    string s;
    cin >> s;

    string ret ="No";
    for (int i = 0; i < 3; i++) {
        if (s[i] == '7') {
            ret = "Yes";
            break;
        }
    }

    cout << ret << endl;
    return 0;
}