using System; using System.Linq; class Program { static void Main() { int n = int.Parse(Console.ReadLine()); int[] a = Console.ReadLine().Split().Select(int.Parse).OrderBy(x => x).ToArray(); if (n % 2 == 0) { Console.WriteLine((double)(a[n / 2 - 1] + a[n / 2]) / 2); } else { Console.WriteLine(a[n / 2]); } } }