/*
    ***Bismillahir Rahmanir Rahim***
    date---: "14-07-2021"
    time---: "20-56-37"
    Author-: Sujon Hasan
*/
 
#include <bits/stdc++.h>
 
using namespace std;
 
#define Faster() ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0); // cin cout code faster
#define RESET(a,x)    memset(a,x,sizeof(a)) //set elements of array / character to some value
#define lli         long long int
#define ull         unsigned long long
#define ui          unsigned int
#define MAX(a, b)   a = max(a, b); // maximum number return
#define MIN(a, b)   a = min(a, b); // minimum number return
#define cout(a)     cout << a << endl;
 
int main()
{
    Faster();

    int t;

    cin >> t;

    while (t--)
    {
        int s;

        cin >> s;

        int count = 0;
        int n = 0;
        int i = 1;

        while (n  < s)
        {
            n += i;
            i += 2;
            count++;           
        }

        cout << count << endl;
        
    }
 
    return 0;
 
}