Question
Maximum apples at min cost

At some store, the price of one apple is 'a' rupees, but there's a special offer where you can buy two apples for 'b' rupees.



Maxim needs to buy exactly n apples. When purchasing two apples, he has the choice to buy them at the regular price or take advantage of the promotion.



What is the minimum amount of rupees Maxim should spend to buy n apples?

Input
Input consists of 3 integers - n, a, b.
Constraints
1 <= n <= 100
1 <= a, b <= 30
Output
Print the minimum cost of buying n apples.
Example
Input
3 5 11

Output
15

Explanation
It is more advantageous to buy three apples for 15 rupees than two for 11 and one for 5.

Online