using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace prob275 { class Program { static void Main(string[] args) { int cnt = int.Parse(Console.ReadLine()); int[] a = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); Array.Sort(a); if (a.Length % 2 ==0) { Console.WriteLine((float)(a[a.Length / 2 -1] + a[a.Length / 2 ])/2); } else { Console.WriteLine(a[a.Length /2]); } } } }