N = int(input())
list = []

for i in range(N):
    cost = int(input())
    list.append(cost)
    
new_list = sorted(list)
print(new_list)

answer = new_list[0]
for i in range(1,N):
    answer = (new_list[i] + answer) / 2
    
print(answer)    
    