#include <bits/stdc++.h>
using ll = long long;
using pp = std::pair<int, int>;

int main() {
    std::ios::sync_with_stdio(false);
    std::cin.tie(NULL);
    int tests;
    std::cin >> tests;
    for (int test=1; test<=tests; test++) {
        int x;
        std::cin >> x;
        int k=1;
        while (k*(k+1)/2 < x) k++;
        if ((k*(k+1))/2-x==1) k++;
        std::cout << k << std::endl;

    }
    return 0;

}