n = int(input())
v_list = list(map(int, input().split()))
while len(v_list) != 1:
    sorted(v_list)
    a = v_list.pop(-1)
    b = v_list.pop(-1)
    new = (a + b) / 2
    v_list.append(new)
print(v_list[0])