# -*- coding: utf-8 -*- n = int(input()) a = list(map(int, input().split())) a.sort() median = 0 while len(a) > 2: del a[0] del a[-1] print(a) if len(a) == 2: calc = (a[0] + a[1]) / 2 median = round(calc, 1) else: median = a[0] print(median)