#include<bits/stdc++.h>
using namespace std;

typedef long long ll;
 int main()
 {
     ios_base::sync_with_stdio(false);
     cin.tie(NULL);
     ll t;
     cin>>t;
     while (t--)
     {
         ll s;
         cin>>s;
         ll a=ceil(sqrt(s));
         cout<<a<<endl;
         /* code */
     }
     return 0;

 }