def resolve():
    N = int(input())
    v = list(map(int, input().split()))
    V = sorted(v)
    one = (V[0]+V[1])/2
    ans = [one]
    for i in range(2, N):
        ans.append((one+V[i])/2)
    print(max(ans))
resolve()