#include <iostream>
using namespace std;
int main(void){
    int a,b,c,d;
    cin>>a;
    b=a/100;
    c=(a-b*100)/10;
    d=(a-b*100-c*10);
    
    if(b==7||c==7||d==7){
        cout<<"Yes";
    }
    else{
        cout<<"No";
    }
}
