#include using namespace std; int main(){ int T; cin >> T; for (int i = 0; i < T; i++){ long long N; cin >> N; int tv = 1, fv = 1000000001; while (fv - tv > 1){ int mid = (tv + fv) / 2; if ((long long) mid * mid <= N){ tv = mid; } else { fv = mid; } } cout << tv << endl; } }