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

int main() {
    int N; cin >> N;
    bool ok = false;
    while(N > 0) {
        if(N % 10 == 7) ok = true;
        N /= 10;
    }
    cout << (ok ? "Yes" : "No") << '\n';
    return 0;
}
