#include<iostream>
using namespace std;


int main () {

    int N;
    cin>>N;

    int A=N/100;
    int O=N%100;
    int B=O/10;
    int P=O%10;

    if (A==7||B==7||O==7||P==7){

        cout<<"Yes"<<endl;
    }

    else () {
        
        cout<<"No"<<endl;
    }
}