eolymp
bolt
Try our new interface for solving problems
Problems

Very Simple Problem

Very Simple Problem

Time limit 1 second
Memory limit 122 MiB

This morning the jury decided to add to the Olympiad one more problem Very Simple Problem. The executive Secretary of the Organizing Committee published its condition in one instance, and now he needs before the start of the Olympiad to make n copies more. He has two copy machines, the first one can make a copy of one paper for х seconds, the other one makes a copy for y seconds. You may use either any one copy machine, or both simultaneously. You can make a copy not only from the original, but also from the copy.

Help him to find out what is the minimum time it will take.

Input data

Three positive integers n, x и y (1n210^8, 1x, y10).

Output data

Print one number - the minimum time in seconds to get n copies.

Examples

Input example #1
4 1 1
Output example #1
3
Input example #2
5 1 2
Output example #2
4