#include<stdio.h>

int judge(char n[4]);

int main() {
   char N[4];
   scanf("%s", N);
   if(judge(N) == 1) {
      printf("Yes\n");
   }else {
      printf("No\n");
   }
   return 0;
}

int judge(char n[4]) {
   int i;
   for(i = 0; i < 4; i++) {
      if(n[i] == '7') {
         return 1;
      }
   }
   return 0;
}
