#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
int main()
{
    int n,m,a,b,ans,temp;
    string s;
    cin>>n;
    while(n>0)
    {
        temp=n%10;
        if(temp==7)
        {
            cout<<"Yes"<<endl;
            return 0;
        }
        n/=10;
    }
    cout<<"No"<<endl;
    return 0;
}
