#include<iostream>

using namespace std;

int main()
{
    int n,d;
    cin>>n;
    while(n)
    {
        d=n%10;
        n/=10;
        if(d==7)
        {
            cout<<"Yes"<<endl;
            return 0;
        }
    }
    cout<<"No"<<endl;
    return 0;
}