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