#include <iostream>
#include <vector>
#include <queue>
#include <string>
#include<bits/stdc++.h>
using namespace std;

void solve() {
	int n;
	cin >> n;
	int c = 0;
	int el = 1;
	while(n > 0) {
		n -= el;
		el += 2;
		c++;
	}
	cout << c << '\n';
}

int main() {
	ios_base::sync_with_stdio(0);
	cin.tie(0);
	int tt;
	cin >> tt;
	while(tt--) {
		solve();
	}
}