100 atcoder#ABC048B. [ABC048B] Between a and b ...

[ABC048B] Between a and b ...

Score : 200200 points

Problem Statement

You are given nonnegative integers aa and bb (aba \leq b), and a positive integer xx. Among the integers between aa and bb, inclusive, how many are divisible by xx?

Constraints

  • 0ab10180 \leq a \leq b \leq 10^{18}
  • 1x10181 \leq x \leq 10^{18}

Input

The input is given from Standard Input in the following format:

aa bb xx

Output

Print the number of the integers between aa and bb, inclusive, that are divisible by xx.

4 8 2
3

There are three integers between 44 and 88, inclusive, that are divisible by 22: 44, 66 and 88.

0 5 1
6

There are six integers between 00 and 55, inclusive, that are divisible by 11: 00, 11, 22, 33, 44 and 55.

9 9 2
0

There are no integer between 99 and 99, inclusive, that is divisible by 22.

1 1000000000000000000 3
333333333333333333

Watch out for integer overflows.