#include <bits/stdc++.h>
#include<chrono>
using namespace std;
using ll = long long;

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

  