#include <bits/stdc++.h>

using namespace std;

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

    bool seven = false;
    for (char c : s) {
        if (c == '7') {
            seven = true;
            break;
        }
    }

    if (seven) {
        cout << "Yes" << endl;
    } else {
        cout << "No" << endl;
    }

    return 0;
}
