number =int(input())
powers =input().rstrip().split()
#print(number)
#print(powers)
ordered = sorted(powers)
answer=0
for i in range(number):
  answer=answer+((1/2)**(number-i))*int(ordered[i])
trueanswer=answer+int(ordered[0])*(1/2)**number
print(trueanswer)