#include using namespace std; using ll = long long; int main(){ int t; cin >> t; while(t--){ ll n; cin >> n; ll ac = 0, wa = 1001001001; while(wa-ac > 1){ ll wj = (wa+ac)/2; if(wj*wj <= n) ac = wj; else wa = wj; } cout << ac << '\n'; } return 0; }