import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int size = sc.nextInt(); int[] num = new int[size]; int i, j, temp, m; for (i = 0; i < size; i++) //read num[i] = sc.nextInt(); //sort desc for (i = 0; i < size-1; i++) { for (j = i; j < size; j++) { if (num[i] < num[j]) { temp = num[i]; num[i] = num[j]; num[j] = temp; } } } m = (int)(size/2+0.99999); //chuo if (size % 2 == 0) { i = m-1; System.out.printf("%.1f\n", (double)(num[m]+num[i])/2); return; } System.out.printf("%d\n", num[m]); } }