 #include<bits/stdc++.h>
using namespace std;
int main()
{
    int n,c=0,r;
    cin>>n;
    while(n>0)
    {
        r=n%10;
        if(r==7)
        {
             c=1;
             break;
        }
        n=n/10;
    }
    if(c==1)
    {
        cout<<"Yes"<<endl;
    }else
    {
        cout<<"No"<<endl;
    }
}