#include <bits/stdc++.h>
#include <string>
#include <set>
#include <vector>
#include <algorithm>
#include <list>
#include <iterator>
#include <deque>
#define lli long long int
#define dint deque<int>
#define lint list<int>
#define pf push_front
#define popf pop_front
#define popb pop_back
#define vint vector<int>
#define sint set<int>
#define pb push_back
#define IOS                      \
    ios::sync_with_stdio(false); \
    cin.tie(0);                  \
    cout.tie(0);
using namespace std;
bool mycompare(pair<int, int> p1, pair<int, int> p2)
{
    return p1.first < p2.first;
}

int main()
{
    IOS;
int t;
cin>>t;
while(t--){
    int n;
    cin>>n;
    float i=sqrt(n);
    int r=i;
    if(r*r==n)cout<<r<<endl;
    else cout<<r+1<<endl;
}

    return 0;
}