using System; public class Program { public static void Main(string[] args) { Console.ReadLine(); string[] s = Console.ReadLine().Split(' '); int[] array = new int[s.Length]; for (int i = 0; i < array.Length; i++) { array[i] = int.Parse(s[i]); } Array.Sort(array); if (array.Length % 2 == 0) { float mid = (array[array.Length/2-1]+array[array.Length/2]) / 2f; Console.WriteLine(mid); } else { Console.WriteLine(array[array.Length / 2]); } } }