N = int(input()) A = sorted([int(x) for x in input().split()]) print((A[N // 2 - 1] + A[N // 2]) / 2)