#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i,n) for(ll i=0;i<n;i++)
#define cY cout << "Yes" << endl;
#define cN cout << "No" << endl;

int main() {
  string n;
  cin >> n;
  bool a = false;
  rep(i,3){
    if(n.at(i)=='7')
    a = true;
  }
  if(a) {
    cY;
  }
  else{
    cN;
  }
  return 0;
}
