#include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
int main()
{
    int n,i=0;
    cin>>n;
    while(n!=0)
    {
        if(n%10==7)
        {
            i=1;
            break;
        }
        n/=10;
    }
    if(i==1)
    {
        cout<<"YES"<<endl;
    }
    else cout<<"NO"<<endl;
    return 0;

}
