How many times to they cross the finish-line? Calculation

I'm trying to make a program that calculates how many times the athletes have to cross the finish-line when they are running a (for example) 500 meters race, when one lap around the stadium is 400 meters.
The lengths that the program must be able to calculate are 500, 1000, 1500, 3000, 5000 and 10000.
Simply doing 10000 / 400 works in that case, but not for all. 500 / 400 gives 1.25, and not 2 as it should've been.

Sadly my math skills need some guidance here, and i would appreciate any help!
I hope i made myself clear, but please ask if i didn't.
That solved it. Thanks!
Topic archived. No new replies allowed.