using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp7
{
    class Program
    {
        static void Main(string[] args)
        {
            int s = 0;
            int n = Convert.ToInt32(Console.ReadLine());
            int[] a = new int[n];
            for (int i = 0; i < n; i++)
                a[i] = Convert.ToInt32(Console.ReadLine());
            for (int i = 0; i < n; i++)
                for (int j = 0; j < n; j++)
                    if (a[i] < a[j])
                    {
                        s = a[i];
                        a[i] = a[j];
                        a[j] = s;
                    }
            s = (n / 2);
            Console.WriteLine(a[s]);
            Console.ReadKey();
        }


    }
}
