n = int(input()) li = list(map(int, input().split())) li.sort() print(li[n//2] if n & 1 == 1 else (li[n//2-1]+li[n//2])/2)