#include <bits/stdc++.h>
#define ll long long int
#define endl "\n"

	
using namespace std;
int main()
{
	
	
	
		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;
}