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)).to!long; long ans; foreach (i; x-10..x+10) { if (i * i <= N) ans = i; } writeln(ans); } }