#include <stdio.h>
#define MIN(x,y) (((x) > (y)) ? (y) : (x))
#define ABS(x) ((x) >= 0 ? (x) : (-(x)))
char s[4];
int main() {
  scanf("%s", s);
  for (int i = 0; i < 3; i++) {
    if (s[i] == '7') {
      printf("Yes");
      return 0;
    }
  }
  printf("No");
  return 0;
}