#include<bits/stdc++.h>

using namespace std;

int main()
{
    int n,chk;
    cin>>n;
    chk=n/100;
    if(chk==7)
    {
        cout<<"Yes"<<endl;
        return 0;
    }
    n=n%100;
    chk=n/10;
    if(chk==7)
    {
        cout<<"Yes"<<endl;
        return 0;
    }
    n=n%10;
    if(n==7)
    {
        cout<<"Yes"<<endl;
        return 0;
    }
    cout<<"No"<<endl;
    return 0;
}