@@ -0,0 +1,610 @@
+import java.io.*;%0Aimport java.util.*;%0Aimport java.text.*;%0Aimport java.math.*;%0Aimport java.util.regex.*;%0A%0Apublic class NestedLogic %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        Scanner in = new Scanner(System.in);%0A        int da=in.nextInt(), ma=in.nextInt(), ya=in.nextInt(), de=in.nextInt(), me=in.nextInt(), ye=in.nextInt(), fine=0;%0A        if (ya==ye) %7B%0A            if (ma==me) %7B%0A                fine=(da-de)*15;%0A            %7D else if (ma%3Eme) %7B%0A                fine=(ma-me)*500;%0A            %7D%0A        %7D else if (ya%3Eye) %7B%0A            fine=10000;%0A        %7D%0A        System.out.println(fine);%0A    %7D%0A%7D%0A

Create NestedLogic.java