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

string N;

int main() {
    cin>>N;
    string ans="No";
    for (int i=0; i<3; i++) {
        if (s[i]=='7') ans="Yes";
    }
    cout<<ans<<endl;
    return 0;
}
//next_permutation
