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

def main():
    ans = V[0]
    V.sort()
    for i in range(1,N):
        ans = (ans + V[i]) /2
    print(ans)
    return

if __name__ == "__main__":
    main()