#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i=0; i<(n); ++i)
#define REP(i, d, n) for(int i=(d); i<(n); ++i)
#define all(v) v.begin(), v.end()
using ll = long long;
using P = pair<int, int>;
 
int main() {

int a;cin>>a;
  int b;b=a-(a/100)*100;
  if(a/100==7||a%10==7||b/10==7){cout<<"Yes"<<endl;}
  else{cout<<"No"<<endl;}

}