There are two wizards, one good and one evil. The evil wizard has captured the princess. The only way to defeat the evil wizard is to recite a set of magic numbers. The good wizard has given you two numbers, A and B. Find every magic number between A and B, inclusive.
A magic number is a number that has two characteristics:
For example, consider the magic number
6. Advance 6 steps to
3, wrapping around once (6→2→3→1→6→2→3).
3, advance to
2, advance to
1, advance to
The input is a file with each line representing a test case. Each test case consists of two integers A and B on a line, separated by spaces. For all test cases 1 <= A <= B <= 10000.
For each test case print all magic numbers between A and B, inclusive, on one line, separated by spaces. If there is no magic number between A and B, print -1.