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 = 1; i < size; i++) { temp = num[i]; for (j = i-1; j >= 0 && temp < num[j]; j--) num[j+1] = num[j]; num[j+1] = 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]); } }