N, *X = map(int, open(0).read().split()) s = 0 ANS = [] for x in X: s += x ** 0.5 ANS.append(str(s)) print(*ANS, sep = "\n")