#include <bits/stdc++.h>

using namespace std;

int main()
{
    int A,B,C,N;

    cin >> N;

    A = N/100;
    B = (N-100*A)/10;
    C = N-100*A-10*B;

    if(A!=7 && B!=7 && C!=7){
        cout << "No" << endl;
    }else{
        cout << "Yes" << endl;
    }

    return 0;
}