Problems
A long, long time ago (
The notes are in the form of a diagram of the road. For each kilometer of road, you have one of
<, indicating that the closest gold nugget is to the West,=, indicating that the closest gold nuggets to the East and to the West are at the same distance, and no gold nugget is at that position,>, indicating that the closest gold nugget is to the East,o, indicating that there is a gold nugget at that position, or., indicating that nothing is known about that location.
Since each of the .) positions could contain or not contain a gold
nugget independently, you want to find out how many of the
Input
The first line of the input gives the number of test cases,
Output
For each test case, output one line containing Case #,
where
Example
4
o..=>..
...o>..........
.=.
.........o........
Case #1: 3
Case #2: 0
Case #3: 1
Case #4: 131072