Statement
Statement language
Consider a sequence of positive integers . Let . The first terms are called the seed of the sequence.
For every integer , the following term is defined by
Two integers and are given. Find positive integers such that for some integer satisfying .
Every input has at least one valid seed. If several seeds are valid, print any one of them.
Input
The input is given in the following format:
Output
For each case, print positive integers forming a valid seed on one line, separated by spaces.
Constraints
- .
- .
- .
Subtasks
Samples
Input
3
27 2
235 3
63529 5
Output
3
1 2
1 1 1 1