#include <iostream>
using namespace std;

int main(){
    long long t;
    cin>>t;
    while(t--){
        long long s;
        cin>>s;
        long long i=1,d=1,sum=1;
        if(s == 1) cout<<1;
        else {
            while(sum<s){
                i += 2;
                sum += i;
                d += 1;
            }
            cout<<d;
        }
        cout<<endl;
    }
}