#include <iostream>
using namespace std;
void ABC161(void);
void ABC162(void);
void ABC163(void);
void ABC164(void);

int main(void){
    ABC162();
}

void ABC162(){
    int n,a,b,c;
    cin>>n;
    a=n/100;
    b=(n/10)%10;
    c=n%10;
    if(a==7||b==7||c==7)cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
}