#include<iostream>
#include<vector>
#include<cmath>
#include<cassert>
using namespace std;
typedef long long ll;
#define MOD 1000000007
        int main(){
           int t,s;
        	cin >> t;
        for(int i=1;i<=t;i++){
        	cin >> s;
        	int d=sqrt(s);
        if(d*d==s){
        	cout << d << endl;
		}
		else{
			cout << d+1 << endl;
		}
    }
        return 0;
        }