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 = str(n // 10 ** 20), str(n % (10 ** 20)).zfill(20) if len(a) > 15: return a return a + "." + b[:16 - len(a)] 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")