import java.util.Scanner;

public class Main{ 
 public static void main(String[] args){
  
   Scanner scan = new Scanner(System.in);
   int input =scan.nextInt();
   
   int a=input%10;
   int b=input%100;
   int c=input/100;
   int i=0;
   if(a==7){
     i++;
   }else if(70<=b && b<80){
     i++;
   }else if(c==7){
     i++;
   }
   
   if(i==1){
  System.out.println("Yes\n");
   }
   else{
     System.out.println("No\n");
   }
     
 }
} import java.util.Scanner; Scanner java.util public class Main{ 
 public static void main(String[] args){
  
   Scanner scan = new Scanner(System.in);
   int input =scan.nextInt();
   
   int a=input%10;
   int b=input%100;
   int c=input/100;
   int i=0;
   if(a==7){
     i++;
   }else if(70<=b && b<80){
     i++;
   }else if(c==7){
     i++;
   }
   
   if(i==1){
  System.out.println("Yes\n");
   }
   else{
     System.out.println("No\n");
   }
     
 }
} Main public static void main(String[] args){
  
   Scanner scan = new Scanner(System.in);
   int input =scan.nextInt();
   
   int a=input%10;
   int b=input%100;
   int c=input/100;
   int i=0;
   if(a==7){
     i++;
   }else if(70<=b && b<80){
     i++;
   }else if(c==7){
     i++;
   }
   
   if(i==1){
  System.out.println("Yes\n");
   }
   else{
     System.out.println("No\n");
   }
     
 } main {
  
   Scanner scan = new Scanner(System.in);
   int input =scan.nextInt();
   
   int a=input%10;
   int b=input%100;
   int c=input/100;
   int i=0;
   if(a==7){
     i++;
   }else if(70<=b && b<80){
     i++;
   }else if(c==7){
     i++;
   }
   
   if(i==1){
  System.out.println("Yes\n");
   }
   else{
     System.out.println("No\n");
   }
     
 } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int input =scan.nextInt(); input scan.nextInt() scan.nextInt scan int a=input%10; a input%10 input 10 int b=input%100; b input%100 input 100 int c=input/100; c input/100 input 100 int i=0; i 0 if(a==7){
     i++;
   }else if(70<=b && b<80){
     i++;
   }else if(c==7){
     i++;
   } a==7 a 7 {
     i++;
   } i++ i if(70<=b && b<80){
     i++;
   }else if(c==7){
     i++;
   } 70<=b && b<80 70<=b 70 b b<80 b 80 {
     i++;
   } i++ i if(c==7){
     i++;
   } c==7 c 7 {
     i++;
   } i++ i if(i==1){
  System.out.println("Yes\n");
   }
   else{
     System.out.println("No\n");
   } i==1 i 1 {
  System.out.println("Yes\n");
   } System.out.println("Yes\n") System.out.println System.out System System.out "Yes\n" {
     System.out.println("No\n");
   } System.out.println("No\n") System.out.println System.out System System.out "No\n" String[] args args public class Main{ 
 public static void main(String[] args){
  
   Scanner scan = new Scanner(System.in);
   int input =scan.nextInt();
   
   int a=input%10;
   int b=input%100;
   int c=input/100;
   int i=0;
   if(a==7){
     i++;
   }else if(70<=b && b<80){
     i++;
   }else if(c==7){
     i++;
   }
   
   if(i==1){
  System.out.println("Yes\n");
   }
   else{
     System.out.println("No\n");
   }
     
 }
} public class Main{ 
 public static void main(String[] args){
  
   Scanner scan = new Scanner(System.in);
   int input =scan.nextInt();
   
   int a=input%10;
   int b=input%100;
   int c=input/100;
   int i=0;
   if(a==7){
     i++;
   }else if(70<=b && b<80){
     i++;
   }else if(c==7){
     i++;
   }
   
   if(i==1){
  System.out.println("Yes\n");
   }
   else{
     System.out.println("No\n");
   }
     
 }
} Main
import java.util.Scanner;

public class Main{ 
 public static void main(String[] args){
  
   Scanner scan = new Scanner(System.in);
   int input =scan.nextInt();
   
   int a=input%10;
   int b=input%100;
   int c=input/100;
   int i=0;
   if(a==7){
     i++;
   }else if(70<=b && b<80){
     i++;
   }else if(c==7){
     i++;
   }
   
   if(i==1){
  System.out.println("Yes\n");
   }
   else{
     System.out.println("No\n");
   }
     
 }
}