#include<bits/stdc++.h>
using namespace std;
#define ll long long
int main()
{
    ll n;
    cin>>n;
    ll flag=0;
    while(n>0)
    {
        if(n%10==7)
            flag=1;
        n/=10;
    }
    if(flag==1)
        cout<<"Yes";
    else
        cout<<"No";
}
