Given a tree where all edge weights are

, define

, where

represents all nodes in the tree, and

is the length of the simple path between node

and node

.
A tree is called “good” if there exist two nodes

and

such that

. Given integer

, determine the minimum number of nodes required for the tree to be “good”.
输入描述:
Each test contains multiple test cases. The first line contains the number of test cases

(

). The description of the test cases follows.
Each test case contains an integer

, representing the value for which you need to determine the minimum number of nodes required for the tree to be “good”.
输出描述:
For each test case, output a single integer, representing the minimum number of nodes required for the tree to be “good”.
It can be shown that the answer always exists.