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