#include<bits/stdc++.h>
using namespace std;
int main()
{
    int t;
    cin>>t;
    while(t--)
    {
        int n,x=0,z=1,ans=1;
        cin>>n;
        while(((z*(z+1))/2)<n)
        {
            z++;
            ans++;
        }
        if(((z*(z+1))/2)==n+1)
            cout<<ans+1<<endl;
        else
            cout<<ans<<endl;
    }
}