#include<bits/stdc++.h>

using namespace std;

main() {
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    string s;
    cin >> s;
    for (auto c : s) {
        if (c == '7') {
            cout << "Yes" << '\n';
            exit(0);
        }
    }
    cout << "No";
    return 0;
}
