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