#include<bits/stdc++.h>
#define ll long long int

using namespace std;

void solve()
{
    int n,sum =0 ,ans = 0,i = 1;
    cin >>  n;

    while(true)
    {
        sum += (2*i-1);
        i++;
        ans++;
       if(sum >= n)break;
    }
    cout << ans << endl;

}

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(0);cout.tie(0);

    int t;
    cin >> t;

    while(t--)
    {
        solve();
    }
    return 0;
}
