#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main()
{
    ll n;
    cin>>n;
    bool fg=false;
    while(n)
    {
        if(n%10==7)
            fg=true;
        n/=10;
    }
    if(fg)
        cout<<"Yes";
    else
        cout<<"No";
}

