{__float128 a;ll n,x;rd(n);rep(n){rd(x);printf("%.18Lg\n",(long double)(a+=sqrtl(x)));}}