#include<bits/stdc++.h>
#define LL long long
#define fo(i,a,b) for(int i=a;i<b;i++)
using namespace std;
int main(){
	//ios::sync_with_stdio(0);
	string s;
	cin>>s;
	if(s.find("7")!=-1)cout<<"Yes";
	else cout<<"No";
	return 0;
}