#include <bits/stdc++.h>
using namespace std;

int main()
{
	int n,bai,shi,ge;
	cin>>n; //123
	
	bai=n/100;
	shi=(n/10)%10;
	ge=n%10;
	
	if(shi==7||ge==7||bai==7)  cout<<"Yes";
	else cout<<"No";
	
	return 0;
}