#include <iostream>
#include <algorithm>
#include <vector>

using namespace  std;

int main() {
	long long t;
	cin >> t;
	long long k;
	long long ad;
	long long g;
	long long res;
	for (long long f = 0;f < t;++f) {
		cin >> g;
		k = 1;
		ad = 3;
		res = 1;
		while (k < g)
		{
			++res;
			k += ad;
			ad += 2;
		}
		cout << res <<endl;




	}


	return 0;
}