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

int main() {
    long long N;
    cin >> N;
    bool find  = false; 
    for ( ; N > 0; ) {
        long long Remainder = N % 10;
        long long Quit = N / 10;
        if (Remainder == 7) {
            find = true;
        }
        N = Quit;
    }
    if (find == true) {
        cout << "Yes" << endl;
    } else {
        cout << "No" << endl;
    }
    return 0;
}
