#include<bits/stdc++.h>
#define ll long long
using namespace std;
void solve()
{
	string s;cin>>s;
	if(s[0]=='7' || s[1]=='7' || s[2]=='7')
	cout<<"Yes";
	else
	cout<<"No";
}
int main()
{
//	int t;cin>>t;
//	while(t--)
	solve();
}
