n = int(input()) cnt = 0 for _ in range(n): a = int(input()) r = a l = 0 m = (r+l)/2 while abs(a - m**2) > 10**-15: m = (r+l)/2 if m**2 > a: r = m else: l = m cnt += m print(cnt)