# -*- coding: utf-8 -*-
N = int(input())
V = [int(a) for a in input().split()]

V = sorted(V)
for v in V:
    if len(V)==1:
        break
    a = V.pop(0)
    b = V.pop(0)
    V.append((a+b)/2)
print(V[0])
