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