#include<bits/stdc++.h>
using namespace std;

#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define rep1(i, n) for (ll i = 1; i < (ll)(n); i++)
#define INF 1000000000000
#define MOD 1000000007
using ll = long long;

int main(){
  int N; cin>>N;
  if(N%10==7||(N/10)%10==7||(N/100)%10==7)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}