using System; namespace yukicoder { class Program { static void Main(string[] args) { //整数の個数 string N = Console.ReadLine(); string[] str = Console.ReadLine().Split(' '); float[] a = new float[str.Length]; float ans=0; //整数 for (int i = 0; i < str.Length; i++) { float A = int.Parse(str[i]); a[i] = A; } //小さい順 Array.Sort(a); //偶数の場合 if (str.Length%2==0) { int i = str.Length / 2; ans = (a[i] + a[i-1]) / 2; } //奇数 else if(str.Length%2==1) { int i = str.Length / 2; ans = a[i]; } Console.WriteLine(ans); } } }