#include <bits/stdc++.h>
// #include <vector.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;

int main()
{
  int n;
  cin >> n;
  bool f = 0;
  rep(i, 3){
    if(n % 10 == 7) f = 1;
    n /= 10;
  }
  if(f) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}

