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