from decimal import Decimal N = int(input()) res = 0 for _ in range(N): x = Decimal(input()) res += x.sqrt() print(res)