#include <bits/stdc++.h>

using namespace std;

int main() {
    ios_base::sync_with_stdio(false); cin.tie(0);
    string s;
    cin >> s;
    bool ans = false;
    for (char ch: s) {
        if (ch == '7') {
            ans = true;
        }
    }
    cout << (ans ? "Yes" : "No") << endl;
}

