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?
Three numbers are entered: k, m, and n. All numbers do not exceed 32,000.
Output the total time required to fry all the cutlets.
[{'input': '1\n5\n1', 'output': '10'}]