//	Author : amnptl 
//	   Godbless
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define NeedForSpeed() ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
#define MOD (1000000007); // 1e9+7
int main()
{
	NeedForSpeed();
	int n; cin>>n; 
	bool pos = false;
	while(n)
	{
		int x = n%10;
		if(x==7) pos = true;
		n/=10;
	}		
	if(pos) cout<<"Yes"<<endl;
	else cout<<"No"<<endl;
	return 0;
}