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

int main() {
  int n;
  cin >> n;
  if (n / 100 == 7 || (n - n / 100 * 100) / 10 == 7 || n - n / 100 * 100 - (n - n / 100 * 100) / 10 * 10 == 7)
    printf("Yes\n");
  else
    printf("No\n");
  return 0;
}