#include<bits/stdc++.h>
using namespace std;
const double eps=1e-8;
inline double calc(const double & x)
{
return 8*pow(x,4) + 7*pow(x,3) + 2*pow(x,2) + 3*x + 6;
}
inline bool my_binary_search(double & _low,double & _high,const double & _expect)
{
if(calc(0)>_expect+eps||calc(100)+eps<_expect)return false;
while(_high-_low>=eps)
{
auto mid=(_low+_high)/2;
if(calc(mid)<_expect)
_low=mid;
else _high=mid;
}
return true;
}
int main()
{
ios::sync_with_stdio(false);
cin.tie(0);
int T;
cin>>T;
while(T--)
{
int Y;
cin>>Y;
double low=0,high=100;
if(my_binary_search(low,high,Y))
cout<<fixed<<setprecision(4)<<low<<'\n';
else cout<<"No solution!\n";
}
return 0;
}