#include<bits/stdc++.h>
#define int long long

using namespace std;

signed main(){
    int n;
    cin>>n;
    while(n){
        if(n%10==7){
            cout<<"YES";
            return 0;
        }
        n /= 10;
    }
    cout<<"NO";
}