#include <bits/stdc++.h>
using namespace std;

int main()
{
    int n;
    bool judge = false;
    cin >>n;
    if(n%10 == 7)
    {
        judge = true;
    }
    else{
        if((n%100) >= 70 && (n%100) < 80){
            judge = true;
        }
        else{
            if(n >= 700 && n < 800){
                judge = true;
            }
        }
    }
    if(judge){
        cout <<"Yes" <<endl;
        return;
    }
    else{
        cout <<"No" <<endl;
        return;
    }
}