L. Lazy ERCD
time limit per test
1 second
memory limit per test
1024 megabytes
input
lazy.in
output
standard output

FIFA changed the style of the World Cup. There are no group rounds anymore, therefore the World Cup will be a pure knockout competition. In a knockout competition, each match that is played between two teams, the losing team is knocked-out of the competition and will not play again, until there's exactly one winner (we are not concerned about other positions, only the first place).

Having N teams in the World Cup, our ERCD wants to know how many matches he needs to watch (he will really watch all matches). He is lazy to count that number, so he needs you to write a program that calculates it.

Input

The first line of the input contains a single integer 1 ≤ T ≤ 100 the number of test cases. Each test case consists of 1 line, containing a single integer N, the number of teams; where 1 ≤ N ≤ 100.

Output

For each test case output a single line displaying the case number, followed by the number of matches the ERCD will watch.

Example
Input
3
2
87
4
Output
Case 1: 1
Case 2: 86
Case 3: 3