import std.stdio, std.array, std.string, std.conv, std.algorithm; import std.typecons, std.range, std.random, std.math, std.container; import std.numeric, std.bigint, core.bitop; immutable long MOD = 998244353; void main() { auto T = readln.chomp.to!int; while (T--) { auto N = readln.chomp.to!long; auto x = floor(sqrt(N*1.0L)); if ((x + 1) * (x + 1) <= N) x+= 1; writeln(x); } }