#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> Pii;

string S;

int main() {
    cin >> S;

    bool f = false;
    for (int i = 0; i < S.length(); i++) {
        if (S[i] == '7') {
            f = true;
        }
    }

    cout << (f ? "Yes" : "No") << endl;
    
    return 0;
}