#include<stdio.h>
#include <stdbool.h>

int main(){
  int n= 0;
  bool judge = false;
  scanf("%d",&n);
  if(n%10 == 7){
     judge = true;
  }
  if(n/100 ==7){
     judge = true;
  }
  if((n/10)%10 == 7){
     judge = true;
  }
  if(judge){
    printf("Yes\n");
  }else{
    printf("No\n");
  }
}
    