#include <bits/stdc++.h>
using namespace std;
int main(){
    string S; cin >> S;
    bool ans = false;
    for(int i = 0; i < 3; i++){
        if(S[i] == '7') {
            ans = true;
            break;
        }
    }
    if(ans) cout << "Yes" << endl;
    else cout << "No" << endl;
    return 0;
}