#P13975. [VKOSHP 2024] Two Scooters

[VKOSHP 2024] Two Scooters

Description

Katya knows that the travel time from home to the metro on a scooter is tt seconds.

The cost of the ride on the scooter from company W\texttt{W} is calculated as follows: first, the number of full minutes spent on the trip is determined, then this time is multiplied by 60 and used to calculate the cost at the rate of c1c_1 cents per second.

The cost of the ride on the scooter from company Y\texttt{Y} is calculated differently: first, the cost of the trip is calculated at the rate of c2c_2 cents per second, and then this amount is rounded up to the nearest whole euro.

Help Katya understand what is the minimum cost she can get to the metro on a scooter from one of these companies.

Recall that there are 100 cents in one euro.

Input Format

The first line contains three integers tt, c1c_1, and c2c_2 --- the travel time in seconds, the fare in cents per second on the scooter from company W\texttt{W}, and the fare in cents per second on the scooter from company Y\texttt{Y} (1t10001 \le t \le 1000, 10c1,c22010 \le c_1, c_2 \le 20).

Output Format

Output the minimum cost of the ride in cents.

473 10 11
4200