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əpik;
you can buy three buns for qəpik;
Huseyn wants to buy exactly buns. What is the minimum number of qəpik he should spend?
Three positive integers , , and , each not greater than 10^9.
Print the minimum number of qəpik that Huseyn should spend to buy exactly buns.
Example 1