#include using namespace std; using ld = long double; using ll = long long; int main() { //~ ios::sync_with_stdio(0); int n; cin >> n; ld sum = 0, c = 0; while(n --) { ll _x; scanf("%lld", &_x); ld x = sqrt(ld(_x)); x = x + c; ld t = sum + x; c = t - sum - x; sum = t; printf("%.18Lf\n", sum); } }