#include <bits/stdc++.h>
#define ll long long int
#define F(i,j,k,in) for(int i=j;i<k;i+=in)
#define DF(i,j,k,in) for(int i=j;i>=k;i-=in)
#define foreach(it, l) for (auto it = l.begin(); it != l.end(); it++)
#define PB push_back
#define ub upper_bound
#define lb lower_bound
#define ins insert
#define PI 3.1415926535897932384626433832795
#define MOD 1000000007
using namespace std;
int main()
{
    ll a,flag=0;
    cin>>a;
    while(a!=0)
    {
        ll r=a%10;
        if(r==7)
        {
            cout<<"Yes";
            flag=1;
            break;
        }
        a/=10;
    }
    if(flag==0)
        cout<<"No";

    return 0;
}
