#include<cstdio>
#include<iostream>
#include<cstring>
#include<cmath>
#include<algorithm>
#include<queue>
#include<map>
#include<stack>

typedef long long ll;
using namespace std;
int main()
{
    int n;
    cin>>n;
    int k=n/100;
    n=n%100;
    int c=n/10;
    int f=n%10;
    if(k==7||c==7||f==7)
    {
        cout<<"Yes"<<endl;
    }
    else
    {
        cout<<"No"<<endl;
    }

    return 0;
}

