#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); int t; if (!(cin >> t)) return 1; while (t--) { ll n; if (!(cin >> n)) return 1; cout << isqrt(n) << '\n'; } return 0; }