#include <iostream>
#include <algorithm>
#include <vector>
#include <map>
#include <set>
#include <math.h>
#include <queue>
using namespace std;
typedef long long ll;

int main() {
  string N;
  cin >> N;
  bool f = false;
  for (auto i = 0;i < 3; i++) {
    if (N[i] == '7') {
      f = true;
    }
  }
  if (f) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }

  return 0;
}