Total cost

Total cost. A cupcake costs A dollars and B cents. Determine, how many dollars and cents should one pay for N cupcakes. A program gets three numbers: A, B, N. It should print two numbers: total cost in dollars and cents.

Input

Output

2
50
4

10 0

10
15
2

20 30

3000
99
3000

9002970 0

2029
34
1848

3750220 32

1886
73
295

556585 35

 

Leave a Reply

Your email address will not be published. Required fields are marked *