import math N = int(input()) ans = 0 for _ in range(N): num = int(input()) ans += math.sqrt(num) print(ans)