There is a piece of paper in front of Tom, its length and width are integer. Tom knows the area of this paper, he wants to know the minimum perimeter of this paper.
输入解释
In the first line, there is an integer T indicates the number of test cases. In the next T lines, there is only one integer n in every line, indicates the area of paper. $T\leq 10,n\leq {10}^{9}$
输出解释
For each case, output a integer, indicates the answer.