e-olymp
favorite We need a little bit of your help to keep things running, click on this banner to learn more
Competitions

Week 8: December 28 - January 10. Functions. Part 2

Between A and B

Given nonnegative integers a and b (ab) and positive integer x. How many numbers are there between a and b inclusively, divisible by x?

Input

Three numbers a, b and x (0ab1018, 1x1018).

Output

Print the answer to the problem.

Time limit 1 second
Memory limit 128 MiB
Input example #1
5 10 3
Output example #1
2
Author Rashad Mammadov, Abutalib Namazov
Source Azərbaycan 2019: Yuxarı yaş olimpiada hazırlığı qrupuna seçim turu