#include<bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define se second
#define fi first
#define ll long long int
#define INF INT_MAX
#define mod
#define chutiyaap ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)
using namespace std;
int main()
{
    chutiyaap;
    int n;cin>>n;
    while(n)
    {
    	int rem=n%10;
    	if(rem==7)
    	{
    		cout<<"Yes";
    		return 0;
    	}
    	n/=10;
    }
    cout<<"No";
    return 0;
}