#include<iostream>
#include<bits/stdc++.h>

using namespace std;

int main()
{
    int n , rem;

    cin>>n;
    while(n)
    {   
        rem = n%10;
        n = n / 10;
        if(rem==7)
        {
            cout<<"Yes"<<endl;
            return 0;
        }
    }
    cout<<"No"<<endl;

}