#include using namespace std; using ll = long long; #define rep(i,m,n) for(int i=m; i> T; rep(i, 0, T){ ll N; cin >> N; ll ok = 0LL, ng = 1000000001LL; while(abs(ok - ng) > 1LL){ ll ce = (ok + ng) / 2LL; if(ce*ce > N) ng = ce; else ok = ce; } cout << ok << endl; } return 0; }