#abc080a. [abc080_a]Parking

[abc080_a]Parking

Problem Statement

You are parking at a parking lot. You can choose from the following two fee plans:

  • Plan 11: The fee will be A×TA×T yen (the currency of Japan) when you park for TT hours.
  • Plan 22: The fee will be BB yen, regardless of the duration.

Find the minimum fee when you park for NN hours.

Constraints

  • 1N201≤N≤20
  • 1A1001≤A≤100
  • 1B20001≤B≤2000
  • All input values are integers.

Input

Input is given from Standard Input in the following format:

NN AA BB

Output

When the minimum fee is xx yen, print the value of xx.


Sample Input 1

7 17 120

Sample Output 1

119
  • If you choose Plan 11, the fee will be 7×17=1197×17=119 yen.
  • If you choose Plan 22, the fee will be 120120 yen.

Thus, the minimum fee is 119119 yen.


Sample Input 2

5 20 100

Sample Output 2

100

The fee might be the same in the two plans.


Sample Input 3

6 18 100

Sample Output 3

100