#include using namespace std; int t; long long n, l, r; int main() { cin >> t; for (int i = 0; i < t; i++) { cin >> n; l = 1, r = n; while (r > l + 1) { long long m = (l + r) / 2; if (m > n / m) r = m; else l = m; } cout << l << endl; } }