#include <bits/stdc++.h>

#define ll long long

using namespace std;

int a[5];

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

    int t; cin>>t;
    while (t--)
    {
        int S; cin>>S;
        int sum=1;
        int cnt=3;
        int ans=1;
        while(sum+cnt<=S)
        {
            sum+=cnt;
            ans++;
            cnt+=2;
        }
        if (sum==S)
            cout<<ans<<'\n';
        else{
            cout<<ans+1<<'\n';
        }
    }
}
