n = int(input()) s = sorted(map(int, input().split())) if n % 2 != 0 : print(s[n//2]) else: print(s[n//2 -1] + s[n//2] /2)