#include
#define eps 1e-7
double sca(double i){
return 8*i*i*i*i+7*i*i*i+2*i*i+3*i+6;
}
double cap(int y){
double l = 0,h = 100,temp;
while(h - l>eps){
temp = (h+l)/2.0;
if(sca(temp)>y) h = temp;
else l = temp;
}
return (h+l)/2.0;
}
int main(void){
int n,y;
while(~scanf("%d",&n)){
while(n--){
scanf("%d",&y);
if(y<=6||y>=sca(100))
printf("No solution!\n");
else
printf("%.4lf\n",cap(y));
}
}
return 0;
}