Recently, Andrea got a list with only one element . Since she doesn't like anything other than 0 and 1, she performed some operations on this list. In each operation, she removed every element , such that from the list. Then, in the same position, she added into the list. Until the list contained only 1 or 0, she stopped the operations.
Now, she wants to know the sum of the elements whose index are in the range . Given , please tell her the answer.
The first line contains 3 integers, —— represent the initial element and the range.
It's guaranteed that the is not greater than the length of the final list.
The output should be an integer representing the sum of the elements.
the sum is,
the final length