#include <bits/stdc++.h>
#define ll long long int
#define fori(n) for(int i=0;i<n;i++)
using namespace std;
int main(){
string a;
cin>>a;
if((a[0]=='7'||a[1]=='7')||a[2]=='7') cout<<"Yes";
else cout<<"No";




 return 0;    
}