#include <iostream>
#include <algorithm>
#include <cmath>
#include <numeric>
#include <vector>
#include <unordered_set>
#include <unordered_map>

using namespace std;

#define int ll
#define sll long long
#define ll unsigned long long
#define sumOf(v) accumulate(v.begin(), v.end(), 0)
#define sz(v) v.size()
#define meanOf(v) sumOf(v) / sz(v)
#define set unordered_set
#define map unordered_map
#define vec vector
#define minOf(v) min_element(v.begin(), v.end())
#define maxOf(v) max_element(v.begin(), v.end())

void task()
{
    int n;
    cin >> n;
    cout << ceil(sqrt((double) n)) << '\n';
}

signed main()
{
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    int n;
    cin >> n;
    while (n--)
        task();
}
