import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); sc.nextLine(); long A[] = new long[3]; String A1 = sc.nextLine(); if (A1.indexOf(' ') < 0) { A[0] = Long.valueOf(A1); A[1] = sc.nextLong(); A[2] = sc.nextLong(); if (A[0] == A[1] || A[1] == A[2]) System.out.println(Math.min(A[0], A[1]) + Math.min(A[1], A[2])); else { Arrays.sort(A); System.out.println(A[0] + A[2]); } } else { System.out.println("\"assert\""); } sc.close(); } }