import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.List; import java.util.Scanner; import java.util.Collections; import java.util.ArrayList; /** * Built using CHelper plug-in * Actual solution is at the top */ public class Main { public static void main(String[] args) { InputStream inputStream = System.in; OutputStream outputStream = System.out; Scanner in = new Scanner(inputStream); PrintWriter out = new PrintWriter(outputStream); Yukicoder solver = new Yukicoder(); solver.solve(1, in, out); out.close(); } static class Yukicoder { public void solve(int testNumber, Scanner in, PrintWriter out) { int loops = in.nextInt(); List arr = new ArrayList(); for (int i = 0; i < loops; i++) { arr.add(in.nextInt()); } Collections.sort(arr); if (loops % 2 == 0) { int median = loops / 2; out.println((arr.get(median - 1) + arr.get(median)) / 2.0); } else { int median = (int) Math.floor(loops / 2); out.println(arr.get(median)); } } } }