@@ -0,0 +1,768 @@
+import java.io.*;%0Aimport java.util.*;%0Aimport java.text.*;%0Aimport java.math.*;%0Aimport java.util.regex.*;%0A%0Apublic class MiniMaxSum %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        List%3CLong%3E list = new ArrayList%3C%3E();%0A%09%09list.add(in.nextLong());%0A%09%09list.add(in.nextLong());%0A%09%09list.add(in.nextLong());%0A%09%09list.add(in.nextLong());%0A        list.add(in.nextLong());%0A%09%09Collections.sort(list);%0A        Long totalSum=list.get(0)+list.get(1)+list.get(2)+list.get(3)+list.get(4);%0A        System.out.println((totalSum-list.get(4))+%22 %22+(totalSum-list.get(0)));%0A    %7D%0A%7D%0A

Create MiniMaxSum.java