Note: You may want to use $$$64$$$-bit integers instead of $$$32$$$-bit integers in this task. For example, in Java, you may want to use long instead of int. In C++, you may want to use long long.
Yunli is writing numbers on the blackboard!
She first writes the number $$$1$$$ one time, then the number $$$2$$$ two times, then the number $$$3$$$ three times, and so on.
Then, Yunli gives you an integer $$$x$$$, and she wants you to tell her how many numbers she must write in this fashion until the sum of all numbers is at least $$$x$$$.
The first line contains an integer $$$t$$$ ($$$1 \leq t \leq 10^4$$$) – the number of test cases.
The first line of each test case contains an integer $$$x$$$ ($$$1 \leq x \leq 10^{18}$$$).
Scoring
Partial credits will be given to programs who pass tests with smaller constraints outlined below.
| Group | Points | Constraints |
| 1 | 15 | The sum of $$$x$$$ does not exceed $$$2\cdot 10^5$$$ over all test cases |
| 2 | 30 | $$$x \leq 10^{9}$$$ |
| 3 | 55 | No further constraints |
For each test case, output the answer on a new line.
1012345678910
1 2 2 3 3 4 4 4 5 5
The first six numbers written are $$$1$$$, $$$2$$$, $$$2$$$, $$$3$$$, $$$3$$$, $$$3$$$.