#include <bits/stdc++.h>

using namespace std;
typedef long long ll;
const int N = 1e5 + 5, MOD = 1e9 + 7;
#define all(v) (v).begin(), (v).end()
int arr[N];

int main() {
    ios_base::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr);
    int tc;
    cin >> tc;
    while (tc--) {
        int n, ans = 1, cnt = 0;
        cin >> n;
        while (ans * ans < n) ++cnt, ++ans;
        cout << ++cnt << '\n';
    }
    return 0;
}