#include<iostream>

using namespace std;

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