Matcom Online Grader
Faculty of Mathematics and Computer Science of University of Havana
ℹ️ We've recently migrated MOG to a new server with a different grader. As a result, some features—especially those related to submission evaluation—might not work correctly. If you encounter any issues, please report them by clicking the exclamation icon in the bottom right corner of the website.
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.