#include <cstdio>
#include <cmath>

const int maxn = 5100;

int n;

int main() {
	scanf("%d", &n);
	for (int i = 1; i <= n; ++i) {
		int m; scanf("%d", &m);
		printf("%d\n", (int)ceil(sqrt(m)));
	}
	return 0;
}