#include<stdio.h>

int main(int argc, char *argv[])
{
  int ret;
  int val;
  int yes = 0;
  ret = scanf("%d", &val);
  //printf("%d\n", val);
  if((val % 10) == 7){
    yes = 1;
  }
  val /= 10;
  if((val % 10) == 7){
    yes = 1;
  }
  val /= 10;
  if((val % 10) == 7){
    yes = 1;
  }
  if(yes){
	printf("Yes\n");
  }else{
    printf("No\n");
  }
  return 0;
}