پاسخ پرسش پرش قورباغه O(1)

x, y, d = int(input()), int(input()), int(input())
distance = y - x
print(distance // d if distance % d == 0 else distance // d + 1)