using System; public class Hello { static void Main() { var t = int.Parse(Console.ReadLine().Trim()); while (t-- > 0) { var n = long.Parse(Console.ReadLine().Trim()); Console.WriteLine(getAns(n)); } } static long getAns(long n) { if (n == 1) return 1; var ok = 1L; var ng = n; while (ng - ok > 1) { var mid = ok + (ng - ok) / 2L; if (mid * mid <= n) ok = mid; else ng = mid; } return ok; } }