#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define str string
#define all(x) (x).begin(),(x).end()
#define rep(x,b,c) for(int x=b;x<c;x++)
#define  pb(x) push_back(x)
#define long(x) x.size()
int main(){
    string a;
	cin>>a;
	if(a[0]=='7'||a[1]=='7'||a[2]=='7') cout<<"Yes";
	else cout<<"No"; 
	return 0;
}