#include<bits/stdc++.h>
using namespace std;
int main ()
{
   int t;
   cin >> t;

  while( t-- )
    {
       int s, sum = 0, count = 0, i;
       cin >> s;

       for(i = 1; sum < s; i+=2)
        {
          sum += i;
          count++;
        }

        cout << count << endl;



    }


    return 0;
}
