def frog_jump(x, y, d): distance = y - x return distance // d if distance % d == 0 else distance // d + 1