from decimal import Decimal, getcontext getcontext().prec = 18 # 18桁の精度を保証 N = int(input()) ans = Decimal(0) for _ in range(N): x = int(input()) ans += Decimal(x**(1/2)) print(ans)