Divisibility by 4#2423

Divisibility by 4

1 second
64 megabytes
Easy

Let us consider an infinite sequence of numbers constructed as follows:

A_0 = 1, A_1 = 12, \ldots, A_9 = 12345678910, A_{10} = 1234567891011, \ldots

That is, each next term in the sequence is obtained by appending to the previous term the decimal representation of the number that is one greater than the index of the current term.

You need to determine the total number of elements in the sequence within the index range (0 \le m \le n \le 10^{18}) that are divisible by without a remainder.

Input

The only line of input contains two non-negative integers and .

Output

Print a single integer — the answer to the problem.

Examples

Example 1

Loading
Loading