#include <bits/stdc++.h>
using namespace std;

int main() {
  int n, check = 0;
  cin >> n;
  for (int i = 0; i < 3; i++) {
    if (n%10 == 7) {
      check = 1;
      break;
    }
    n /= 10;
  }
  if (check == 1) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}