Task
Time limit: 1000 ms,
Memory limit: 256 Mb

Rabbit Clover went to the bakery for pies. One pie costs A rub and B kop. Determine how many rubs and kops you need to pay for N pies.

Input data:
The program receives three integers as input: A, B, N
Output data:
The program should output two numbers: the purchase price in rubs  and kops (see the output format for examples)

Examples
Input:
10 15 2
Output:
20rub. 30kop.

Input:
2 50 4
Output:
10rub. 0kop.

Auto CHOOSE THE PROGRAMMING NECESSARY LANGUAGE!
Attach the program source file:
or enter the source code in the language:

Rules for designing programs and a list of errors during automatic task verification
           

Results: