Hide

Problem J
M-Climb Road

/problems/mclimbroad/file/statement/en/img-0001.jpg
Every year, new Colorado School of Mines students climb to the top of Lookout Mountain to place a rock from their hometown onto a structure of rocks in the shape of an M. For this M-Climb, students walk up the road leading up to the M while clubs and organizations line the side of the road with parked cars, cheering the students on and spraying lots of water on them.

The upperclassmen have conspired to have a water gun placed exactly every $N$ feet, with the first being $N$ feet from the beginning of the road. The M-Climb is $W$ miles (one mile is $5280$ feet), and you will be squirted every $N$ feet, including at the $W^{\text {th}}$ mile marker (if there is a water gun there). How many times will you get squirted?

Input

The input consists of two lines:

The first line contains a single integer $1 \leq W \leq 10\, 000$ representing the length of the road up to the M in miles.

The second line contains a single integer $1 \leq N \leq W$ representing the number of feet between each Mines student with a water gun.

Output

An integer representing how many times you will get squirted with a water gun. (Remember that there is no water gun at the $0^{\text {th}}$ mile marker.)

Sample Input 1 Sample Output 1
3
50
316
Sample Input 2 Sample Output 2
2
500
21

Please log in to submit a solution to this problem

Log in