import java.util.Scanner; 

class Main{

 public static void main(String[] args){

 Scanner scan = new Scanner(System.in);
   int FLG = 0;
   for (int N = scan.nextInt(); N > 0; N = N/10){
   if (N%10 == 7){
    FLG = 1;
     break;
   }
    }
  if (FLG == 0){  
  System.out.println("No");
  }
  
   else{
  System.out.println("Yes");
   }
 }
} import java.util.Scanner; Scanner java.util class Main{

 public static void main(String[] args){

 Scanner scan = new Scanner(System.in);
   int FLG = 0;
   for (int N = scan.nextInt(); N > 0; N = N/10){
   if (N%10 == 7){
    FLG = 1;
     break;
   }
    }
  if (FLG == 0){  
  System.out.println("No");
  }
  
   else{
  System.out.println("Yes");
   }
 }
} Main public static void main(String[] args){

 Scanner scan = new Scanner(System.in);
   int FLG = 0;
   for (int N = scan.nextInt(); N > 0; N = N/10){
   if (N%10 == 7){
    FLG = 1;
     break;
   }
    }
  if (FLG == 0){  
  System.out.println("No");
  }
  
   else{
  System.out.println("Yes");
   }
 } main {

 Scanner scan = new Scanner(System.in);
   int FLG = 0;
   for (int N = scan.nextInt(); N > 0; N = N/10){
   if (N%10 == 7){
    FLG = 1;
     break;
   }
    }
  if (FLG == 0){  
  System.out.println("No");
  }
  
   else{
  System.out.println("Yes");
   }
 } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int FLG = 0; FLG 0 for (int N = scan.nextInt(); N > 0; N = N/10){
   if (N%10 == 7){
    FLG = 1;
     break;
   }
    } int N = scan.nextInt(); int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan N > 0 N 0 N = N/10 N = N/10 N N/10 N 10 {
   if (N%10 == 7){
    FLG = 1;
     break;
   }
    } {
   if (N%10 == 7){
    FLG = 1;
     break;
   }
    } if (N%10 == 7){
    FLG = 1;
     break;
   } N%10 == 7 N%10 N 10 7 {
    FLG = 1;
     break;
   } FLG = 1 FLG 1 break; if (FLG == 0){  
  System.out.println("No");
  }
  
   else{
  System.out.println("Yes");
   } FLG == 0 FLG 0 {  
  System.out.println("No");
  } System.out.println("No") System.out.println System.out System System.out "No" {
  System.out.println("Yes");
   } System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args
import java.util.Scanner; 

class Main{

 public static void main(String[] args){

 Scanner scan = new Scanner(System.in);
   int FLG = 0;
   for (int N = scan.nextInt(); N > 0; N = N/10){
   if (N%10 == 7){
    FLG = 1;
     break;
   }
    }
  if (FLG == 0){  
  System.out.println("No");
  }
  
   else{
  System.out.println("Yes");
   }
 }
}