import java.util.*;

public class Main {
  public static void main(String[] args){

    Scanner sc = new Scanner(System.in);
    
    String ans = "No";
    int a = sc.nextInt();
    
    String as = String.valueOf(a);
    String x = as.substring(0, 1);
    String y = as.substring(1, 2);
    String z = as.substring(2, 3);
 
    if ("7".equals(x) || "7".equals(y) || "7".equals(z)) {
      ans = "Yes";
    }
 
    System.out.println(ans);
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args){

    Scanner sc = new Scanner(System.in);
    
    String ans = "No";
    int a = sc.nextInt();
    
    String as = String.valueOf(a);
    String x = as.substring(0, 1);
    String y = as.substring(1, 2);
    String z = as.substring(2, 3);
 
    if ("7".equals(x) || "7".equals(y) || "7".equals(z)) {
      ans = "Yes";
    }
 
    System.out.println(ans);
  }
} Main public static void main(String[] args){

    Scanner sc = new Scanner(System.in);
    
    String ans = "No";
    int a = sc.nextInt();
    
    String as = String.valueOf(a);
    String x = as.substring(0, 1);
    String y = as.substring(1, 2);
    String z = as.substring(2, 3);
 
    if ("7".equals(x) || "7".equals(y) || "7".equals(z)) {
      ans = "Yes";
    }
 
    System.out.println(ans);
  } main {

    Scanner sc = new Scanner(System.in);
    
    String ans = "No";
    int a = sc.nextInt();
    
    String as = String.valueOf(a);
    String x = as.substring(0, 1);
    String y = as.substring(1, 2);
    String z = as.substring(2, 3);
 
    if ("7".equals(x) || "7".equals(y) || "7".equals(z)) {
      ans = "Yes";
    }
 
    System.out.println(ans);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String ans = "No"; ans "No" int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc String as = String.valueOf(a); as String.valueOf(a) String.valueOf String a String x = as.substring(0, 1); x as.substring(0, 1) as.substring as 0 1 String y = as.substring(1, 2); y as.substring(1, 2) as.substring as 1 2 String z = as.substring(2, 3); z as.substring(2, 3) as.substring as 2 3 if ("7".equals(x) || "7".equals(y) || "7".equals(z)) {
      ans = "Yes";
    } "7".equals(x) || "7".equals(y) || "7".equals(z) "7".equals(x) || "7".equals(y) || "7".equals(z) "7".equals(x) "7".equals "7" x "7".equals(y) "7".equals "7" y "7".equals(z) "7".equals "7" z {
      ans = "Yes";
    } ans = "Yes" ans "Yes" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
  public static void main(String[] args){

    Scanner sc = new Scanner(System.in);
    
    String ans = "No";
    int a = sc.nextInt();
    
    String as = String.valueOf(a);
    String x = as.substring(0, 1);
    String y = as.substring(1, 2);
    String z = as.substring(2, 3);
 
    if ("7".equals(x) || "7".equals(y) || "7".equals(z)) {
      ans = "Yes";
    }
 
    System.out.println(ans);
  }
} public class Main {
  public static void main(String[] args){

    Scanner sc = new Scanner(System.in);
    
    String ans = "No";
    int a = sc.nextInt();
    
    String as = String.valueOf(a);
    String x = as.substring(0, 1);
    String y = as.substring(1, 2);
    String z = as.substring(2, 3);
 
    if ("7".equals(x) || "7".equals(y) || "7".equals(z)) {
      ans = "Yes";
    }
 
    System.out.println(ans);
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args){

    Scanner sc = new Scanner(System.in);
    
    String ans = "No";
    int a = sc.nextInt();
    
    String as = String.valueOf(a);
    String x = as.substring(0, 1);
    String y = as.substring(1, 2);
    String z = as.substring(2, 3);
 
    if ("7".equals(x) || "7".equals(y) || "7".equals(z)) {
      ans = "Yes";
    }
 
    System.out.println(ans);
  }
}