#include <bits/stdc++.h>
#define pb push_back
#define sz(a) int(a.size())
#define re return
#define all(a) a.begin(),a.end()
#define int long long
using namespace std;
signed main()
{
	int h,c=0;
	cin>>h;
	if (h%10==7)  c=1;
	h/=10;
	if (h%10==7)  c=1;
	h/=10;
	if (h==7)  c=1;
	if (c==0)  cout<<"No";
	else  cout<<"Yes";
	re 0;
}