using System; namespace yukicoder { class Program { static void Main(string[] args) { int a = int.Parse(Console.ReadLine()); string[] str = Console.ReadLine().Split(' '); double[] str1 = new double[str.Length]; double b; int c; double num=0; for (int i = 0; i < str.Length; i++) { str1[i] = int.Parse(str[i]); } for (int x = 0; x <= str1.Length; x++) { for (int y = x; y < str1.Length; y++) { if (str1[y] < str1[x]) { b = str1[x]; str1[x] = str1[y]; str1[y] = b; } } } if (a % 2 == 0) { c = a / 2; num = (str1[c] + str1[c -1]) / 2; } else { c = a / 2; num = str1[c] ; } Console.WriteLine(num.ToString()); } } }