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