#include <bits/stdc++.h>

using namespace std;

typedef long long ll;
//#define int ll
typedef vector<int> VI;
typedef vector<vector<int>> VVI;
typedef pair<int, int> PII;
typedef vector<pair<int, int>> VPII;

const long long mod = 1e9 + 7;

void solve() {
  int n;cin >> n;
  int a = (int)sqrt(n);
  if(a*a == n)
    cout << a << "\n";
  else
    cout << a+1 << "\n";
}

signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
//  freopen("input.txt", "r", stdin);
//  freopen("output.txt", "w", stdout);
  int t; cin >> t; while(t--)
    solve();
  return 0;
}
