#include <stdio.h>
#include <stdlib.h>
#include <math.h>

int main()
{
 int R;
 printf("Zahl eingeben : \n");
 scanf("%d",&R);
 
 if ((R / 100 == 7 ) || (R / 10 == 7) || (R % 10 == 7)){

     printf("Yes");
 }
 else{

     printf("NO");
 }
 

 return 0;
}
