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

int main() {
    string N;
    cin >> N;
    for (char c : N) {
        if (c == '7') {
            cout << "Yes" << endl;
            return 0;
        }
    }
    cout << "No" << endl;
}