#include<iostream>
#include<algorithm>
#include<map>
#include<cstdlib>
using namespace std;
int main()
{
	int n; 
	bool fl = false;
	cin >>n;
	if((n%100)%10==7) fl=true;
	if((n%100)/10==7) fl=true;
	if(n/100==7) fl=true;
	if(fl)cout<<"Yes"<<endl;
	else cout<<"No"<<endl ;
	return 0;
}