Buns
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Huseyn likes buns very much, which are sold at ADA University in building C. It is known that
you can buy one bun for qəpiks;
you can buy three buns for qəpiks;
Huseyn wants to buy exactly buns. What is the least number of qəpiks he should spend?
Input
Three positive integers and , each is not greater than .
Output
Print the least amount of qəpiks that Huseyn should spend to buy exactly buns.
Examples
Input #1
Answer #1
Submissions 1K
Acceptance rate 40%