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