a = int(input()) l = [int(x) for x in input().split()] l.sort() if a % 2 == 0: print (l[a // 2]) else: print ((l[a // 2 - 1] + l[a // 2]) / 2)