#include<iostream>
using namespace std;

int main()
{  
	int N=1;
	cin >>N;

	bool Yes_Flag=false;

	for(int i=0;i<3;i++){
		if(N%10==7){Yes_Flag=true;
		break;
		}
		N/=10;
	} 

	if(Yes_Flag){cout<<"Yes"<<endl;}
	else{cout<<"No"<<endl;}
	
	return 0;
}
