Counting Ones
Carl is right now the happiest child in the world: he has just learned this morning what the binary system is. He learned, for instance, that the binary representation of a positive integer is a string where each is a binary digit or , starting with , and such that
It is really nice to see him turning decimal numbers into binary numbers, and then adding and even multiplying them.
Caesar is Carl's older brother, and he just can't stand to see his little brother so happy. So he has prepared a challenge: "Look Carl, I have an easy question for you: I will give you two integers and , and you have to tell me how many 's there are in the binary representation of all the integers from to inclusive. Get ready". Carl agreed to the challenge. After a few minutes, he came back with a list of the binary representation of all the integers from to . "Caesar, I'm ready". Caesar smiled and said: "Well, let me see, I choose and . Your list will not be useful".
Carl hates loosing to his brother so he needs a better solution fast. Can you help him?
Input
A single line that contains two integers and .
Output
Output a line with an integer representing the total number of digits in the binary representation of all the integers from to inclusive.