clude<bits/stdc++.h>
using namespace std;
#define ll long long
#define int ll
#define pii pair<int,int>
#define fi first
#define se second
#define mp(x,y) make_pair(x,y)
#define pb(x) push_back(x)
#define M 998244353
 
int32_t main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    int t=1;
 
    while(t--)
    {
        int N;
        if(N%10==7 || (N/10)%10==7 || ((N/10)/10)%10==7)
        {
            cout<<"YES";
        }
        else cout<<"NO";
    }
 
   return 0;
 
//    cout<<"Sum of x+y = " << z;
}