#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main(){
  string n;
  cin >> n;
  int flag = 0;
  rep(i,n.size()){
      if(n[i]=='7') flag = 1;
  }
  if(flag) cout << "Yes" << endl;
  else cout << "No" << endl;
}