@@ -0,0 +1,620 @@
+import java.io.*;%0Aimport java.util.*;%0Aimport java.text.*;%0Aimport java.math.*;%0Aimport java.util.regex.*;%0A%0Apublic class Solution %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        Scanner in = new Scanner(System.in);%0A        long a = in.nextLong();%0A        long b = in.nextLong();%0A        long c = in.nextLong();%0A        long d = in.nextLong();%0A        long e = in.nextLong();%0A        long sum%5B%5D=new long%5B5%5D;%0A        sum%5B0%5D=a+b+c+d;%0A        sum%5B1%5D=e+b+c+d;%0A        sum%5B2%5D=a+e+c+d;        %0A        sum%5B3%5D=a+b+e+d;%0A        sum%5B4%5D=a+b+c+e;%0A        Arrays.sort(sum);%0A        System.out.print(sum%5B0%5D+%22 %22 +sum%5B4%5D);%0A    %7D%0A%7D%0A

add Mini-Max Sum