from math import sqrt from decimal import Decimal import sys input = sys.stdin.readline def main(): N = int(input()) ans = [0]*(N+1) ans[0] = Decimal(0) for i in range(1,N+1): ans[i] = ans[i-1]+Decimal(int(input())).sqrt() print(*ans[1:],sep="\n") if __name__ == "__main__": main()