Problem: On the board, Bob wrote positive integers in base with sum (i. e. in decimal numeral system). Alice sees the board, but accidentally interprets the numbers on the board as base- integers and adds them up (in base ).
What numbers should Bob write on the board, so Alice's sum is as large as possible?
Input Format: The input consists of multiple test cases. The first line contains an integer () — the number of test cases. The description of the test cases follows.
The only line of each test case contains two integers and (; ) — the sum and amount of numbers on the board, respectively. Numbers and are given in decimal notation (base ).
Output Format: For each test case, output positive integers — the numbers Bob should write on the board, so Alice's sum is as large as possible. If there are multiple answers, print any of them.
Note: In the first test case, , and Alice's sum is (Here represents the number in base .) It can be shown that it is impossible for Alice to get a larger sum than .
In the second test case, Bob can only write a single number on the board, so he must write .
In the third test case, , and Alice's sum is It can be shown that it is impossible for Alice to get a larger sum than .