#include<bits/stdc++.h>
using namespace std;
string c;
int main(){
	cin>>c;
	if(c[0]=='7'){cout<<"Yes";return 0;}
	if(c[1]=='7'){cout<<"Yes";return 0;}
	if(c[2]=='7'){cout<<"Yes";return 0;}
	cout<<"No";
	return 0;
}