#include using namespace std; typedef long long ll; ll isqrt(ll n) { ll l = 0, r = n, ans = 0; while (l <= r) { ll m = l + (r - l) / 2; if (m <= n / m) { ans = m; l = m + 1; } else { r = m - 1; } } return ans; } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); ll t; cin >> t; if (cin.fail()) { cerr << "Input t không h?p l?!\n"; return 1; } while (t--) { ll n; cin >> n; if (cin.fail()) { cerr << "Input n không h?p l?!\n"; return 1; } cout << isqrt(n) << '\n'; } return 0; }