#include <bits/stdc++.h>
using namespace std;
#define int long long
int32_t main()
{
    int t;
    cin >> t;
    while (t--)
    {
        int n;
        cin >> n;
       int c=0,i=1;
       while(n>0){
           c++;
           n-=i;
           i+=2;
       }
       cout<<c<<endl;
    }
}
