TRICOIN
All submissions for this problem are available.<h3> Read problems statements in Mandarin Chinese , Russian and Vietnamese as well.</h3>
Chef belongs to a very rich family which owns many gold mines. Today, he brought N gold coins and decided to form a triangle using these coins. Isn't it strange?
Chef has a unusual way of forming a triangle using gold coins, which is described as follows:
Chef is interested in forming a triangle with maximum possible height using at most N coins. Can you tell him the maximum possible height of the triangle?
The first line of input contains a single integer T denoting the number of test cases.
The first and the only line of each test case contains an integer N denoting the number of gold coins Chef has.
For each test case, output a single line containing an integer corresponding to the maximum possible height of the triangle that Chef can get.
Input 3 3 5 7 Output 2 2 3