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