#include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; #define rep(i, n) for (int i=0;i < (int)(n);i++) int main(){ int t; cin >> t; while(t--){ ll x;cin >> x; ll ans = round(sqrt(x)); cout << ans << endl; } return 0; }