Problem Description
Mike has many friends. Here are nine of them: Alice, Bob, Carol, Dave, Eve, Frank, Gloria, Henry and Irene.
Mike is so skillful that he can master n languages (aka. programming languages).
His nine friends are all weaker than he. The sets they can master are all subsets of Mike's languages.
But the relations between the nine friends is very complex. Here are some clues.
- Alice is a nice girl, so her subset is a superset of Bob's.
- Bob is a naughty boy, so his subset is a superset of Carol's.
- Dave is a handsome boy, so his subset is a superset of Eve's.
- Eve is an evil girl, so her subset is a superset of Frank's.
- Gloria is a cute girl, so her subset is a superset of Henry's.
- Henry is a tall boy, so his subset is a superset of Irene's.
- Alice is a nice girl, so her subset is a superset of Eve's.
- Eve is an evil girl, so her subset is a superset of Carol's.
- Dave is a handsome boy, so his subset is a superset of Gloria's.
- Gloria is a cute girl, so her subset is a superset of Frank's.
- Gloria is a cute girl, so her subset is a superset of Bob's.
Now Mike wants to know, how many situations there might be.
Input
The first line contains an integer T(T≤20) denoting the number of test cases.
For each test case, the first line contains an integer n(0≤n≤3000), denoting the number of languages.
Output
For each test case, output ''Case #t:'' to represent this is the t-th case. And then output the answer.
Sample Input
2
0
2
Sample Output
Case #1: 1
Case #2: 1024