Author: | M. Sporyshev | Time limit: | 1 sec | |
Input file: | Standard input | Memory limit: | 512 Mb | |
Output file: | Standard output |
Young road constructor Vasya decided to pave a road with asphalt. The road is a straight line segment L meters long.
Vasya can pave a continuous segment of A meters of road per day. To avoid potential cracks on the borders between segments paved on different days, Vasya decided to overlap segments. Specifically:
Your program must calculate the total number of meters that Vasya will pave.
Input contains three integers L A B.
Output must contain a single integer — the total number of meters paved.
1 ≤ L, A, B ≤ 100
A > B
No. | Standard input | Standard output |
---|---|---|
1 |
|
|
2 |
|
|
3 |
|
|