#include<bits/stdc++.h>
using namespace std;
#define ll long long
int n,ans; 
int main(){
	cin>>n;
	for(int i=1;i<=n;i++)
	{
	ans=n%10;
	if(ans!=7)continue;
	else cout<<"Yes";return 0;
	n=n/10;
	}
	cout<<"No";
return 0;
}
