N, AX = int(input()), [int(i) for i in input().split(' ')] AX.sort() print(sum(AX) / N if N % 2 == 0 else AX[N // 2])