#include using namespace std; const int cm = 1 << 17; char cn[cm], *ci = cn + cm, ct; inline char getcha() { if (ci - cn == cm) { fread(cn, 1, cm, stdin); ci = cn; } return *ci++; } inline int getint() { int A = 0; if (ci - cn + 16 > cm) { while ((ct = getcha()) >= '0') { A = A * 10 + ct - '0'; } } else { while ((ct = *ci++) >= '0') { A = A * 10 + ct - '0'; } } return A; } int main() { int n = getint(); long double ans = 0; while (n--) { int x = getint(); ans += sqrt((long double)x); puts(to_string(ans).c_str()); } return 0; }