#include int main() { int T; scanf("%d",&T); while(T--) { long long int a; scanf("%lld",&a); long long int min = 1, max = 1234567890; long long int ans = 0; while(min<=max) { long long int h = (min+max)/2; if(h*h<=a) { ans = h; min = h+1; } else max = h-1; } printf("%lld\n",ans); } }