#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); i++)
#define rrep(i,n) for(int i = 1; i <= (n); ++i)
#define drep(i,n) for(int i = (n)-1; i >= 0; --i)
#define srep(i,s,t) for (int i = s; i < t; ++i)
#define pb push_back
using namespace std;
typedef long long ll;
typedef pair<ll,ll> P;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<ll> vl;
typedef tuple<int,int,int> T;
typedef vector<P> vp;
typedef vector<T> vt;

int main(void) {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);

  int main(void) {
    string N;
    cin >> N;
    rep(i,n){
      if(s[i]=='7'){
        cout << "Yes" << endl
      }
      else{
        cout << "No" << endl;
      }
    }
  }
}