#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;

int main()
{
	ios::sync_with_stdio(0);
	cin.tie(0);
	int n;
	cin>>n;
	
	int g,s,b;
	g=n%10;
	s=n/10%10;
	b=n/100;
	
	if(g==7 || s==7 || b==7)
		cout<<"Yes"<< endl;
	else
		cout<<"No"<< endl;
	
	return 0;
}
