#include <bits/stdc++.h>
using namespace std;
#define int long long

signed main()
{
    

    int t;
    cin >> t;

    while (t--)
    {
        int n;
        cin>>n;
        int a = sqrt(n);
        float b = (float)sqrt(n);
        if (b - a == 0)
        {
            cout<<b<<endl;
        }
        else cout<<a+1<<endl;
        
        
        
        
        

    }
    return 0;
}