#include<bits/stdc++.h>
#pragma comment(linker, "/STACK:64000000")  

using namespace std;

int main() {
	int t;
	cin >> t;
	while (t--) {
		int s;
		cin >> s;
		int sum = 0;
		int ans = 0;
		for (int i = 1; i < s+2; i+=2) {
			if (sum < s) {
				sum += i;
				ans++;
			}
			else {
				break;
			}
		}
		cout << ans << '\n';
	}
}