#include <iostream>
using namespace std;

int main(){

  int N;
  cin >> N;
  int a = N/100;
  int b = N%100;
  b = N / 10;
  int c = N % 10;
  if (a == 7 || b == 7 || c == 7)
    printf("Yes");
  else
    printf("No");
  return 0;
}