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