#include<bits/stdc++.h>
using  namespace std;
int main(){
     int T;
     cin>>T;
     while(T--){
         long long int N;
         cin>>N;
         int sum1=0,i=1,count=0;
         while(true){
             sum1+=i;count++;
             if(sum1>=N){break;}
             i+=2; 
         }
         cout<<count<<"\n";
     }
     return 0;
 }
