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