@@ -0,0 +1,687 @@
+import java.util.Scanner;%0A%0Apublic class Main %7B%0A    public static void main(String%5B%5D args) %7B%0A        Scanner scanner = new Scanner(System.in);%0A        int n = scanner.nextInt();%0A        int leftSum = 0, rightSum = 0;%0A%0A        for (int i = 0; i %3C n; i++) %7B%0A            int leftInput = scanner.nextInt();%0A            leftSum += leftInput;%0A        %7D%0A%0A        for (int j = 0; j %3C n; j++) %7B%0A            int rightInput = scanner.nextInt();%0A            rightSum += rightInput;%0A        %7D%0A%0A        if (leftSum == rightSum) %7B%0A            System.out.println(%22Yes sum %22 + leftSum);%0A        %7D%0A        else %7B%0A            System.out.println(%22No diff %22 + Math.abs(leftSum - rightSum));%0A        %7D%0A    %7D%0A%7D%0A

Create 07.LeftАndRightSum.java