import java.util.Scanner; public class No_275 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); float[] F = new float[sc.nextInt()]; for (int i = 0; i < F.length; i++) { F[i] = sc.nextInt(); } for (int i = 0; i < F.length - 1; i++) { for (int j = i + 1; j < F.length; j++) { if (F[i] > F[j]) { float tmp = F[i]; F[i] = F[j]; F[j] = tmp; } } } System.out.println(lookForMedian(F)); sc.close(); } static float lookForMedian(float[] m) { int ml = m.length % 2; if (ml == 0) { return (m[m.length / 2 - 1] + m[m.length / 2]) / 2; } else { return m[m.length / 2]; } } }