n = int(input()) a = sorted(map(int, input().split(" "))) index = n // 2 if n % 2 == 0: print((a[index]+a[index-1])/2) else: print(a[index])