#include<bits/stdc++.h>
using namespace std;
#define mem(a) memset(a,0,sizeof(a))
#define ll long long
int main()
{
	int a;
	cin>>a;
	if(a/100==7||a/10%10==7||a%10==7)cout<<"Yes";
	else cout<<"No"; 
	return 0;
}