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