#include <bits/stdc++.h>

using namespace std;

void solve() {
	int a; cin>>a;
	int i=0;
	while(1) {
		if(i*(i+1)/2>=a) break;
		i++;
	}
//	cerr<<i<<endl;
	if(i*(i+1)/2==a+1) i++;
	cout<<i<<endl;
}

int main() {
#ifndef ONLINE_JUDGE
	freopen("in.in ","r ",stdin);
	freopen("out.out ","w ",stdout);
#endif
	int t; cin>>t;
	while(t--) solve();
	
	return 0;
}
                              