l = int(input()) n = list(map(int, input().split())) n.sort() if l % 2 != 0: print(n[l//2 + 1]) else: print(sum(n) // l)