#include<bits/stdc++.h>
using namespace std;
int main()
{
    int n;
    cin>>n;
    int p=0;
    while(n>0)
    {
        int x=n%10;

        if(x==7)
        {
            p=1;
            break;

        }
        n=n/10;;
    }
    if(p)
        cout<<"Yes"<<endl;
    else
        cout<<"No"<<endl;
}
