import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner scanner=new Scanner(System.in);
    int number=scanner.nextInt();
    int hundreds=number/100;
    int tens=number/10-hundreds*10;
    int ones=number-hundreds*100-tens*10;
    if(hundreds==7||tens==7||ones==7){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
} import java.util.Scanner; Scanner java.util class Main{
  public static void main(String[] args){
    Scanner scanner=new Scanner(System.in);
    int number=scanner.nextInt();
    int hundreds=number/100;
    int tens=number/10-hundreds*10;
    int ones=number-hundreds*100-tens*10;
    if(hundreds==7||tens==7||ones==7){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
} Main public static void main(String[] args){
    Scanner scanner=new Scanner(System.in);
    int number=scanner.nextInt();
    int hundreds=number/100;
    int tens=number/10-hundreds*10;
    int ones=number-hundreds*100-tens*10;
    if(hundreds==7||tens==7||ones==7){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  } main {
    Scanner scanner=new Scanner(System.in);
    int number=scanner.nextInt();
    int hundreds=number/100;
    int tens=number/10-hundreds*10;
    int ones=number-hundreds*100-tens*10;
    if(hundreds==7||tens==7||ones==7){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  } Scanner scanner=new Scanner(System.in); scanner new Scanner(System.in) int number=scanner.nextInt(); number scanner.nextInt() scanner.nextInt scanner int hundreds=number/100; hundreds number/100 number 100 int tens=number/10-hundreds*10; tens number/10-hundreds*10 number/10 number 10 hundreds*10 hundreds 10 int ones=number-hundreds*100-tens*10; ones number-hundreds*100-tens*10 number-hundreds*100-tens*10 number hundreds*100 hundreds 100 tens*10 tens 10 if(hundreds==7||tens==7||ones==7){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    } hundreds==7||tens==7||ones==7 hundreds==7||tens==7||ones==7 hundreds==7 hundreds 7 tens==7 tens 7 ones==7 ones 7 {
      System.out.println("Yes");
    } System.out.println("Yes") System.out.println System.out System System.out "Yes" {
      System.out.println("No");
    } System.out.println("No") System.out.println System.out System System.out "No" String[] args args
import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner scanner=new Scanner(System.in);
    int number=scanner.nextInt();
    int hundreds=number/100;
    int tens=number/10-hundreds*10;
    int ones=number-hundreds*100-tens*10;
    if(hundreds==7||tens==7||ones==7){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
}