#include <iostream>
#include <string>
using namespace std;
int main(void){
    // Your code here!
    int a;
    cin >> a;
    int b = a % 100;
    
    if(a%10 == 7||(b>69 && b<80)||(a>699 && a<800)){
        cout << "Yes" <<endl;
    }else{
        cout << "No" << endl;
    }
    
}
