N = int(input()) a = sorted(list(map(int, input().split(' ')))) if N & 1 == 1: print(a[N//2]) else: print((a[N//2] + a[N//2-1]) / 2)