#include #define rep(i,n) for(int i = 0; i < (n); i++) using namespace std; typedef long long ll; int main(){ cin.tie(0); ios::sync_with_stdio(0); int T; cin >> T; rep(_,T) { ll N; cin >> N; auto f = [&](ll x) { return x * x <= N; }; ll ok = 0, ng = 1e9+5; while(ng - ok > 1) { ll mid = (ok + ng) / 2; (f(mid) ? ok : ng) = mid; } cout << ok << "\n"; } }