#include <iostream>
#include<bits/stdc++.h>
#define int long long
#define all(v) v.begin(),v.end()
#define nline "\n" 
using namespace std;

int MOD=1e9 +7;
double PI=3.1415926536;

int32_t main() 
{
   int tc=1;
   cin>>tc;
   while(tc--)
   {
       int s;
       cin>>s;
       int ans;
       ans=ceil(sqrt(s));
       cout<<ans;
       cout<<"\n";
   }
    return 0;
}
