#include <bits/stdc++.h>

using namespace std;

int main() {
  int n;
  cin >> n;
  while (n > 0) {
    int x = n % 10;
    if (x == 7) {
      puts("Yes");
      return 0;
    }
    n /= 10;
  }
  puts("No");
  return 0;
}

