n = input() a = sorted([int(i) for i in input().split()]) c = len(a) if c % 2 == 0: print((a[c//2-1] + a[c//2])/2) else: print(a[c//2])