#include<iostream>
using namespace std;
int main()
{
    int n,cnt=0;
    cin>>n;
    while(n>0)
    {
        int x=n%10;
        if(x==7)
        {
            cnt++;
            break;
        }
        n/=10;
    }

    if(cnt)
    {
        cout<<"Yes"<<endl;
    }
    else
    {
        cout<<"No"<<endl;

    }
    return 0;
}



