import java.util.Scanner;

public class Main{
  public static void main(String args[]){
    Scanner scan = new Scanner(System.in);
    int H, J, I;
    int n = scan.nextInt();
    
    H = n/100;
    J = (n - (H*100))/10;
    I = (n - (H*100) - (J*10));
         
    if(H == 7||J == 7||I == 7){
      System.out.print("Yes");
    } else {
      System.out.print("No");
    }
  }
}
 import java.util.Scanner; Scanner java.util public class Main{
  public static void main(String args[]){
    Scanner scan = new Scanner(System.in);
    int H, J, I;
    int n = scan.nextInt();
    
    H = n/100;
    J = (n - (H*100))/10;
    I = (n - (H*100) - (J*10));
         
    if(H == 7||J == 7||I == 7){
      System.out.print("Yes");
    } else {
      System.out.print("No");
    }
  }
} Main public static void main(String args[]){
    Scanner scan = new Scanner(System.in);
    int H, J, I;
    int n = scan.nextInt();
    
    H = n/100;
    J = (n - (H*100))/10;
    I = (n - (H*100) - (J*10));
         
    if(H == 7||J == 7||I == 7){
      System.out.print("Yes");
    } else {
      System.out.print("No");
    }
  } main {
    Scanner scan = new Scanner(System.in);
    int H, J, I;
    int n = scan.nextInt();
    
    H = n/100;
    J = (n - (H*100))/10;
    I = (n - (H*100) - (J*10));
         
    if(H == 7||J == 7||I == 7){
      System.out.print("Yes");
    } else {
      System.out.print("No");
    }
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int H H J J I; I int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan H = n/100 H n/100 n 100 J = (n - (H*100))/10 J (n - (H*100))/10 (n - (H*100)) n (H*100) H 100 10 I = (n - (H*100) - (J*10)) I (n - (H*100) - (J*10)) n - (H*100) - (J*10) n (H*100) H 100 (J*10) J 10 if(H == 7||J == 7||I == 7){
      System.out.print("Yes");
    } else {
      System.out.print("No");
    } H == 7||J == 7||I == 7 H == 7||J == 7||I == 7 H == 7 H 7 J == 7 J 7 I == 7 I 7 {
      System.out.print("Yes");
    } System.out.print("Yes") System.out.print System.out System System.out "Yes" {
      System.out.print("No");
    } System.out.print("No") System.out.print System.out System System.out "No" String args[] args public class Main{
  public static void main(String args[]){
    Scanner scan = new Scanner(System.in);
    int H, J, I;
    int n = scan.nextInt();
    
    H = n/100;
    J = (n - (H*100))/10;
    I = (n - (H*100) - (J*10));
         
    if(H == 7||J == 7||I == 7){
      System.out.print("Yes");
    } else {
      System.out.print("No");
    }
  }
} public class Main{
  public static void main(String args[]){
    Scanner scan = new Scanner(System.in);
    int H, J, I;
    int n = scan.nextInt();
    
    H = n/100;
    J = (n - (H*100))/10;
    I = (n - (H*100) - (J*10));
         
    if(H == 7||J == 7||I == 7){
      System.out.print("Yes");
    } else {
      System.out.print("No");
    }
  }
} Main
import java.util.Scanner;

public class Main{
  public static void main(String args[]){
    Scanner scan = new Scanner(System.in);
    int H, J, I;
    int n = scan.nextInt();
    
    H = n/100;
    J = (n - (H*100))/10;
    I = (n - (H*100) - (J*10));
         
    if(H == 7||J == 7||I == 7){
      System.out.print("Yes");
    } else {
      System.out.print("No");
    }
  }
}

