#include<bits/stdc++.h>
#define bye ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
using namespace std;
int main()
{
    bye;
    int n,r;
    cin>>n;
    while(n>0)
    {
        r=n%10;
        if(r==7)
        {
            cout<<"Yes";
            return 0;
        }
        n/=10;
    }
    cout<<"No";
    return 0;
}
