# -*- coding: utf-8 -*-

N = int(input())
V = sorted(list(map(int, input().split())), reverse=True)

while len(V)>1:
    max = V.pop(-1)
    max2 = V.pop(-1)

    V.append((max+max2)/2)
    V = sorted(V)

print(V[0])