def sqrt(n): x = 1 << (n.bit_length() + 1) // 2 y = (x + n // x) // 2 while y < x: x = y y = (x + n // x) // 2 return x | 1 def tostr(n): a, b = n // 10 ** 20, n % (10 ** 20) return str(a) + "." + str(b).zfill(20) N, *X = map(int, open(0).read().split()) s = 0 ANS = [] for x in X: s += sqrt(x * 10 ** 40) ANS.append(tostr(s)) print(*ANS, sep = "\n")