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

bool ok = false;
int n;

int main() {
  cin >> n;
  while (n > 0) {
    if (n % 10 == 7) ok = 1;
    n /= 10;
  }
  if (ok) cout << "Yes";
  else cout << "No";
}