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