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

    }
    if(c==1)
    {
        cout<<"Yes"<<endl;
    }
    else cout<<"No"<<endl;
}
