#include <bits/stdc++.h>

using namespace std;

int main()
{
    int t,s,ans;
    cin >> t;
    
    while(t--)
    {
        cin >> s;
        ans = ceil(sqrt(s));
        cout << ans << "\n";
    }

    return 0;
}
