Maybe you have heard the story about programmers who pulled the rope. Initially, each programmer wanted to compete with every other programmer. Now, they want to pull the rope again, but with a twist: every pair of programmers must be on opposite teams at least twice.
The number of programmers is even. They play several rounds, and in each round, all programmers are split into two equal teams. Being very lazy 🙂, they want to play as few rounds as possible. What is the minimum number of rounds required so that, across the entire schedule, every pair of programmers is on opposite teams in at least two rounds?
For example, if there are programmers numbered from to , we can divide them into teams as follows:
(, , , ) – (, , , )
(, , , ) – (, , , )
(, , , ) – (, , , )
(, , , ) – (, , , )
The first line contains the number of test cases (1 \leq T \leq 50). Each of the next lines contains an even integer (2 \leq N \leq 300), the number of programmers in that test case.
Print lines, each in the form Case #A: B, where is the test case number (starting from ), and is the minimum number of rounds required for the given .
Example 1