Language: Java

import java.util.Scanner;

public class Main{
public static void main(String[] args){
  Scanner sc = new Scanner(System.in);
  int N1 = sc.nextInt();  
  int N2 = sc.nextInt();
  int N3 = sc.nextInt();
  int N4 = sc.nextInt();
  int a1 = (N1-1*)(N2-1)*(N3-1)*(N4-1);
  int a4 = (N1-4*)(N2-4)*(N3-4)*(N4-4);
  int a7 = (N1-7*)(N2-7)*(N3-7)*(N4-7);
  int a9 = (N1-9*)(N2-9)*(N3-9)*(N4-9);
  
if(a1==0 && a4 == 0 && a7==0 && a9==0){
  System.out.println("YES");
}else{
  System.out.println("NO");
}

}
}


Compiler output:
Main.java:10: error: illegal start of expression
  int a1 = (N1-1*)(N2-1)*(N3-1)*(N4-1);
                 ^
Main.java:10: error: ';' expected
  int a1 = (N1-1*)(N2-1)*(N3-1)*(N4-1);
                  ^
Main.java:10: error: not a statement
  int a1 = (N1-1*)(N2-1)*(N3-1)*(N4-1);
                     ^
Main.java:10: error: ';' expected
  int a1 = (N1-1*)(N2-1)*(N3-1)*(N4-1);
                       ^
Main.java:10: error: not a statement
  int a1 = (N1-1*)(N2-1)*(N3-1)*(N4-1);
                            ^
Main.java:10: error: ';' expected
  int a1 = (N1-1*)(N2-1)*(N3-1)*(N4-1);
                              ^
Main.java:10: error: not a statement
  int a1 = (N1-1*)(N2-1)*(N3-1)*(N4-1);
                                   ^
Main.java:10: error: ';' expected
  int a1 = (N1-1*)(N2-1)*(N3-1)*(N4-1);
                                     ^
Main.java:11: error: illegal start of expression
  int a4 = (N1-4*)(N2-4)*(N3-4)*(N4-4);
                 ^
Main.java:11: error: ';' expected
  int a4 = (N1-4*)(N2-4)*(N3-4)*(N4-4);
                  ^
Main.java:11: error: not a statement
  int a4 = (N1-4*)(N2-4)*(N3-4)*(N4-4);
                     ^
Main.java:11: error: ';' expected
  int a4 = (N1-4*)(N2-4)*(N3-4)*(N4-4);
                       ^
Main.java:11: error: not a statement
  int a4 = (N1-4*)(N2-4)*(N3-4)*(N4-4);
                            ^
Main.java:11: error: ';' expected
  int a4 = (N1-4*)(N2-4)*(N3-4)*(N4-4);
                              ^
Main.java:11: error: not a statement
  int a4 = (N1-4*)(N2-4)*(N3-4)*(N4-4);
                                   ^
Main.java:11: error: ';' expected
  int a4 = (N1-4*)(N2-4)*(N3-4)*(N4-4);
                                     ^
Main.java:12: error: illegal start of expression
  int a7 = (N1-7*)(N2-7)*(N3-7)*(N4-7);
                 ^
Main.java:12: error: ';' expected
  int a7 = (N1-7*)(N2-7)*(N3-7)*(N4-7);
                  ^
Main.java:12: error: not a statement
  int a7 = (N1-7*)(N2-7)*(N3-7)*(N4-7);
                     ^
Main.java:12: error: ';' expected
  int a7 = (N1-7*)(N2-7)*(N3-7)*(N4-7);
                       ^
Main.java:12: error: not a statement
  int a7 = (N1-7*)(N2-7)*(N3-7)*(N4-7);
                            ^
Main.java:12: error: ';' expected
  int a7 = (N1-7*)(N2-7)*(N3-7)*(N4-7);
                              ^
Main.java:12: error: not a statement
  int a7 = (N1-7*)(N2-7)*(N3-7)*(N4-7);
                                   ^
Main.java:12: error: ';' expected
  int a7 = (N1-7*)(N2-7)*(N3-7)*(N4-7);
                                     ^
Main.java:13: error: illegal start of expression
  int a9 = (N1-9*)(N2-9)*(N3-9)*(N4-9);
                 ^
Main.java:13: error: ';' expected
  int a9 = (N1-9*)(N2-9)*(N3-9)*(N4-9);
                  ^
Main.java:13: error: not a statement
  int a9 = (N1-9*)(N2-9)*(N3-9)*(N4-9);
                     ^
Main.java:13: error: ';' expected
  int a9 = (N1-9*)(N2-9)*(N3-9)*(N4-9);
                       ^
Main.java:13: error: not a statement
  int a9 = (N1-9*)(N2-9)*(N3-9)*(N4-9);
                            ^
Main.java:13: error: ';' expected
  int a9 = (N1-9*)(N2-9)*(N3-9)*(N4-9);
                              ^
Main.java:13: error: not a statement
  int a9 = (N1-9*)(N2-9)*(N3-9)*(N4-9);
                                   ^
Main.java:13: error: ';' expected
  int a9 = (N1-9*)(N2-9)*(N3-9)*(N4-9);
                                     ^
32 errors