#include<iostream>
#include<string>
using namespace std;
int main(void){
    string n;
    cin>>n;
    bool seven(false);
    for(int i(0);i<3;i++){
        if(n[i] == '7')seven = true;
    }
    if(seven)cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
    return 0;
}