DHRODD - Total Odd V1

There are two integers L and R, you'll have to count how many odd numbers are there within the range from L to R inclusive.

All of you know what is an odd number. A number that is not divisible by 2 is called an odd number.

Input

The only line contain two integers L, R.

Constraints

0 <= L <= R <= 100000000

Output

Print the count of odd numbers from L to R inclusive.

Example

Input:
2 3

Output:
1

[ Original Setter of this Problem Dhruba Mitra, RUET ]


Added by:Avik Sarkar
Date:2018-05-30
Time limit:2s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All
Resource:RUET Beginner Battle -1

hide comments
2023-02-12 13:04:37 Simes
Constraints were wrong, I've corrected the lower limit to 0.
2021-02-15 07:41:29
my code is correct but still i am getting time limit error in python
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.