def sqrt(n): if not n: return 0 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 ** 16, n % (10 ** 16) return str(a) + "." + str(b).zfill(16) N, *X = map(int, open(0).read().split()) s = 0 ANS = [] for x in X: s += sqrt(x * 10 ** 32) ANS.append(tostr(s)) print(*ANS, sep = "\n")