import decimal N=int(input()) ans=0 decimal.getcontext().prec=20 for _ in range(N): x=int(input()) r=x for i in range(50): r=(r**2+x)/(2*r) ans+=r print(ans)