import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.stream.Stream; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); //入力値読み込み int count = Integer.parseInt(br.readLine()); int[] num = Stream.of(br.readLine().split(" ")).mapToInt(n -> Integer.parseInt(n)).sorted().toArray(); int di = count / 2; System.out.println((count % 2 == 0) ? (num[di - 1] + num[di]) / 2.0 : num[di]); } }