#include<cstdio>
#include<cstring>
#include<iostream>
#include<algorithm>
using namespace std;
double haha(double x)
{
return 8*x*x*x*x+7*x*x*x+2*x*x+3*x+6;
}
int main()
{
int t;
scanf("%d",&t);
double l,r,mid,m;
while(t--)
{
scanf("%lf",&m);
l=0.0;r=100.0;
while(r-l>1e-10)
{
mid=(r+l)/2;
if(haha(mid)>m)
r=mid;
else
l=mid;
}
if(m<6||m>8*100*100*100*100+7*100*100*100+2*100*100+3*100+6)
printf("No solution!\n");
else
printf("%.4f\n",mid);
}
return 0;
}