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