Cutlets

Problem Statement

You can fry k cutlets at once in a pan. Each cutlet must be fried m minutes per side without interruption. What is the minimum time required to fry n cutlets on both sides?

Input

Three numbers are entered: k, m, and n. All numbers do not exceed 32,000.

Output

Output the total time required to fry all the cutlets.

Example

[{'input': '1\n5\n1', 'output': '10'}]