# Practice on Toph

Participate in exhilarating programming contests, solve unique algorithm and data structure challenges and be a part of an awesome community.

Participate in exhilarating programming contests, solve unique algorithm and data structure challenges and be a part of an awesome community.

Limits
1s, 512 MB

You will be given two numbers and an operation to do with them. You just need to print the output of the numbers after doing the operation.

The digits you need to print are in the above image. Each digit is a 3 x 5 matrix filled with asterisk **(*)** sign. Print the final absolute value of your output separated by a space for each digits. See sample I/O for better understanding.

First line of input will be **T** the number of test cases **(<= 15)**. Each test will contain a line having two integers **X** & **Y** and a character **C**, where **(-100000 <= X, Y <= 100000)** & **(‘+’, ‘-’, ‘*‘)** denoting the addition (‘+’), subtraction (‘-’), multiplication (’*‘) operation.

Output each case like following format: **Case #x:**, where x being the number of the case. And in a new line print absolute value of the desired output separated by space for each digits. Print a blank line after each case except the last one.

Input | Output |
---|---|

2 5 + 5 9 * 9 | Case #1: * *** * * * * * * * * * * *** Case #2: *** * * * * *** * * * * *** * |

Login to submit