#include using namespace std; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); int T, i; long long N, l, c, r; cin >> T; for (i = 0; i != T; ++i) { cin >> N; for (l = 1, r = 1'000'000'001; l + 1 < r; ) { c = (l + r) / 2; if (c * c <= N) l = c; else r = c; } cout << l << '\n'; } return 0; }