Are you sure you want to participate in this contest ?
If you select a team then virtual participation for other team members will be disabled. So, pick one if and only if your teammates are ready to compete with you.
Fito is travelling with a group of N friends (including Fito). Each person can travel by train or taxi. The train will cost each person A pesos. The taxi will cost a total of B pesos. How much is our minimum total travel expense?
Input
The input contains only one line with the three integers N, A and B.
1≤N≤20
1≤A≤50
1≤B≤50
Output
Print an integer representing the minimum total travel expense.
Sample test(s)
Input
4 2 9
--- Showing first 30 lines (click "Copy" to get full content) ---
Output
8
--- Showing first 30 lines (click "Copy" to get full content) ---
Input
4 2 7
--- Showing first 30 lines (click "Copy" to get full content) ---
Output
7
--- Showing first 30 lines (click "Copy" to get full content) ---
Input
4 2 8
--- Showing first 30 lines (click "Copy" to get full content) ---
Output
8
--- Showing first 30 lines (click "Copy" to get full content) ---