You are given two positive integers L and R. Find the number of integers in the range [L, R] that can be represented as the difference of two squares. In other words, find the number of integers X in the range [L, R] such that X=P2−Q2 where P and R are integers.
Input format
Output format
For each test case, you are required to print exactly T lines each containing only 1 positive integer.
Constraints
1≤T≤1051≤L, R≤109
Numbers in the Range [1,5] which can be written as the difference of two squares are : 1,3,4,5. Hence, the answer is 4.