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