For each test case, first print a line saying "Case #i" where i is the number of the test case.
Then, on the following lines, print a list of transactions that reverses the transactions given in the input, i.e. balances the accounts again. Use the same format as in the input. Print a blank line after each test case, even after the last one.
- Your solution must consist of at most n-1 transactions.
- Amounts may not be negative, i.e. never output "A B -20", output "B A 20" instead.
If there is more than one solution satisfying these restrictions, anyone is fine.