#include <iostream> #include <cmath> using namespace std; int main() { int T; cin >> T; while (T--) { long long b; cin >> b; long long a = sqrtl(b); cout << a << endl; } return 0; }