N = int(input())
lst = list(map(int,input().split(" ")))
lst.sort()
print(lst)
val = min(lst)
for i in range(1,len(lst)):
  print("i=%d" %i)
  val += (2**(i-1))*lst[i]
  print(val)
print(val/(2**(N-1)))