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?
Three positive integers and , each is not greater than .
Print the least amount of qəpiks that Huseyn should spend to buy exactly buns.