#include <bits/stdc++.h>
using namespace std;

int main() {
	int t;
	cin >> t;
	vector<int>v;
	for(int i=1;i<=10000;i++){
       int r=(i*(i+1))/2;
     	    v.push_back(r);
	}
	while(t--){
	    int n;
	    cin >> n;
	    int id=lower_bound(v.begin(),v.end(),n)-v.begin();
	    if(v[id]==n||v[id]-n!=1){cout<<id+1<<"\n";}
	    else{cout<<id+2<<"\n";}
	}
	return 0;
}