LogiQuest

498. Count Odd Numbers in a Range

EasyMath

Print how many odd numbers lie in [low, high].

Input format

One line: low high

Output format

The count.

Example 1

Input

3 7

Output

3

Example 2

Input

8 10

Output

1

Constraints

0 ≤ low ≤ high ≤ 10⁹

Read input from standard input and print the answer to standard output. Your code is judged against 4 test cases, most of them hidden.

Loading the MyLoginn IDE…