#include <bits/stdc++.h>
#define ll long long
#define lb long double
#define f(i,a,b) for(ll i = a;i <= b;i ++)
#define fi(i,a,b) for(ll i = a;i >= b;i --)
using namespace std;
ll n;
int main()
{
    cin >> n;
    while(n != 0)
    {
        ll dem = n % 10;
        n /= 10;
        if(dem == 7)
        {
            cout << "Yes";
            return 0;
        }
    }
    cout << "No";
    return 0;
}
