import itertools
import math
import fractions
import functools
n = int(input())
v = list(map(int, input().split()))
v.sort()
print(v)

sum = (v[0] + v[1])/2
for i in range(2,n):
    sum = (sum + v[i])/2

print(sum)