#include <bits/stdc++.h>

using namespace std;

int main()
{
    int t;
    cin>>t;
    while(t--)
    {
        int n;
        cin>>n;
        if(n==1) {cout<<1<<endl;
                continue;}
        
                int p=1;
                int f=0;
            while(n>0)
            {
                f++;
                n-=p;
                p+=2;
            }
            cout<<f<<endl;

        
    }
    return 0;
}
