#include <iostream>
#include <string>
#include <cmath>


using namespace std;


int main(){
    int a,b,c,N;
    cin >> N;
    a=N-N%100;
    N=N%100;
    b=N-N%10;
    c=N%10;
    if(a==7||b==7||c==7)cout << "Yes"<<endl;
    else cout << "No"<< endl;
    //float ;
    return 0;
}