- Time limit: 1.00 s
- Memory limit: 512 MB
Far far away in the future, humanity has sent frozen newborn rabbit pair to populate an alien planet. Each pair of rabbits reaches maturity at the age of 1 month and they immediately mate. One month after mating the pair reproduces one pair of rabbits, after which the older pair mates again immediately. The rabbits never die and continue breeding forever.
How many months will the rabbit population be in an interval between and ?
Input:
The first line contains 2 integers : the interval boundaries.
Output:
Print a single integer : the duration (in months) when the number of rabbit pairs is in the interval inclusive.
Constraints:
Example:
Input:
3 5
Output:
2
Explanation:
During month: pair of newborn rabbits. No mating.
During month: still pair of rabbits, pair mates at the beginning of the month and at the end of the month you'll have new pair of newborns.
During month: now there are pairs of rabbits. The older pair mates at the beginning of the month and at the end of the month you'll have new pair of newborns.
During month: pairs of rabbits, of which mate. At the end of the month you'll have new pairs of newborns.
During month: pairs of rabbits, of which mate. At the end of the month you'll have new pairs of newborns.