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