#include <bits/stdc++.h>
#define ll long long int
#define endl "\n"
#define mod 1000000007
#define mem(a,val) memset(a,val,sizeof(a))
#define ps(x,noOfDecimal) fixed<<setprecision(noOfDecimal)<<x
	
using namespace std;
int main()
{
	
	std::ios::sync_with_stdio(false);
	
		int n;
		cin>>n;
		bool ok=false;
		while(n>0){
			int rem= n%10;
			n/=10;
			if(rem==7)ok = true;
		}
	
		if(ok)cout<<"Yes"<<endl;
		else cout<<"No";
	return 0;
}