a = int(input()) b = list(map(int, input().split())) c = sorted(b) if (a % 2): print(c[a // 2]) else: print((c[a // 2] + c[a // 2 - 1]) / 2)