#include <bits/stdc++.h>
#define ll long long int
#define pb push_back
#define pf push_front
#define ppb pop_back
#define ppf pop_front
#define TC ll t;cin>>t; for(ll k = 1;k<=t;k++)
#define bs binary_search
#define pll pair<ll,ll>
#define ppll pair<ll,pll>
#define vvll vector<vector<ll>>
#define sll stack<ll>
#define qll queue<ll>
#define vll vector<ll>
#define vpll vector<pll>
#define vc vector <char>
#define f first
#define s second
#define MOD 10e9+ 7
#define mxn 10e18
#define ln "\n"
using namespace std;
int main()
{
    ios::sync_with_stdio(0);
        cin.tie(0);
    TC
    {
    ll r;
    cin>>r;
    ll i=1;
    ll sum=0;
    ll cnt=0;
    while(sum<r)
       { sum+=i;
           i=i+2;
           cnt++;
       }
      /* if(sum-r>2)
        cnt++;*/
       cout<<cnt<<"\n";
    }
}
