n = int(input())
v = list(map(int,input().split()))
v = sorted(v)
ans = 0

for i in range(n-1):
    if i == n-1:
        ans += v[i]
        ans /= 2
        break
        
    ans += (v[i] + v[i+1])/2
    
print(ans)