#include using namespace std; typedef long long ll; int main(){ int t; cin >> t; for(int i=0; i> n; ll ans = (ll)sqrtl(n); cout << ans << endl; } }