The year 2015 is almost over.

Limak is a little polar bear. He has recently learnt about the binary system. He noticed that the passing year has exactly one zero in its representation in the binary system — 2015_{10} = 11111011111_{2}. Note that he doesn't care about the number of zeros in the decimal representation.

Limak chose some interval of years. He is going to count all years from this interval that have exactly one zero in the binary representation. Can you do it faster?

Assume that all positive integers are always written without leading zeros.

The only line of the input contains two integers *a* and *b* (1 ≤ *a* ≤ *b* ≤ 10^{18}) — the first year and the last year in Limak's interval respectively.

Input5 10Output2Input2015 2015Output1Input100 105Output0Input72057594000000000 72057595000000000Output26

提交代码