import java.io.IOException; import java.util.Arrays; import java.util.Scanner; public class Main{ static Main byakko = new Main(); static Scanner sc = new Scanner(System.in); static double[] x; public static void main(String[] args)throws IOException{ int n = sc.nextInt(); x = new double[n]; for(int i = 0; i < n; i++){ x[i] = sc.nextInt(); } Arrays.sort(x); if(n % 2 == 0){ System.out.println((x[n / 2 - 1] + x[n / 2]) / 2); }else if(n % 3 == 0){ System.out.println((int)(x[n / 2])); } sc.close(); } }