#define rep(i,n) for(int i=0;i<(int)(n);i++) #define ALL(v) v.begin(),v.end() typedef long long ll; #include using namespace std; ll f(ll x){ ll ok=-1,ng=1e9+7; while(ng-ok>1){ ll mid=(ok+ng)/2; if(mid*mid<=x) ok=mid; else ng=mid; } return ok; } int main(){ ios::sync_with_stdio(false); std::cin.tie(nullptr); int t; cin>>t; while(t--){ ll n; cin>>n; cout<