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