#include <bits/stdc++.h>
#define INF 100000000000
#define MOD 1000000007
#define ll long long int
#define REP(i, n) for (int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(),(x).end()



using namespace std;

int main(){
  string N; cin>>N;
  if(N[0] == '7' or N[1] == '7' or N[2] == '7') cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
  return 0;
}