Find the count of integers from the range that can be represented as .
Consists of no more than lines. Each line contains two integers and that represents one query.
For each query print in a separate line the number of integers from the range inclusively that can be represented as .