#include <bits/stdc++.h>
using namespace std;

int main()
{
    int t;
    cin>>t;
    while(t--)
    {
        int n;
        cin>>n;
        int sum=0;
        int i=1,ans=0;
        while(sum<n)
        {
            sum+=i;
            ans++;
            i=i+2;
        }
        cout<<ans<<endl;
    }
    
}