#include <iostream>
using namespace std;

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