#include<bits/stdc++.h>
using namespace std;
#define IOS                           \
    ios_base::sync_with_stdio(false); \
    cin.tie(NULL);

    void solve() {
        int n,x;
        cin>>n;
        x=ceil(sqrt(n));
        cout<<x<<endl;
    }

int main()
{
     IOS;
    int t;
    cin>>t;
    while(t--)
    {
        solve();
    }
    return 0;
}