#include<bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[])
{
	int t;
	cin>>t;
	while(t--){
		int n;
		cin>>n;
		int res=1;
		int i=1;
		while(i*i<n){
			res++;
			i++;
		}
		cout<<res<<"\n";
	}
	return 0;
}