We’re preparing your current view and syncing the latest data.
Devu and Churu have a habit of drinking water for several days. Devu drinks a specific minimum amount of water each day, and Churu drinks no more than a certain amount per day. Given the number of days they drink water and their respective daily minimum or maximum amounts, determine the total amount of water consumed by both over those days.
The first line contains three integers: 'd' (number of days), 'v' (minimum liters Devu drinks per day), and 'm' (maximum liters Churu drinks per day).
Output a single integer: the total liters of water drunk by Devu and Churu over 'd' days.
1 ≤ d ≤ 100 1 ≤ v ≤ m ≤ 100
Example 1
Input
3 1 2
Output
6
Explanation
Devu drinks 1 liter each day, so over 3 days he drinks 3 liters. Churu can drink up to 2 liters each day, here always 1 liter is enough to reach at least 'v' liters a day for both of them, so total water is 3 + 3 = 6 liters.