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

Between A and B

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
1 1000000 324
Output example #1
3086
Author Rashad Mammadov, Abutalib Namazov
Source Azərbaycan 2019: Yuxarı yaş olimpiada hazırlığı qrupuna seçim turu