#include<bits/stdc++.h>
#include<math.h>
#include<string.h>
#include<algorithm>
#define ll long long int
using namespace std;
int main()
{
int t; cin>>t;

while(t--)
{
int s,c=0,j=0,i=1; cin>>s;

while(c<s)
{
 c+=i;
 i+=2;
 j++;
}

cout<<j<<endl;
}

 return 0;
}
 