**26 人解决**，39 人已尝试。

**30 份提交通过**，共有 129 份提交。

**5.2** EMB 奖励。

**单点时限: **2.0 sec

**内存限制: **256 MB

The automatic teller machine (ATM) has a lot of banknotes of two different values. When a person who uses the terminal requests some amount, the machine issues exactly this amount of money (of course, if this amount does not exceed a balance of the user‘s account). Most people do not like to carry a huge bundle of banknotes, therefore the machine must issue requested amount using minimal possible number of banknotes. Your task is to write a program that determines the number of banknotes of each value that should be issued by the machine so that the user receives the requested amount and the total number of banknotes is minimal. You may assume that the number of banknotes of each value is not limited.

The first number in the input gives the number of test cases. A single line for each case contains three integers a, b (the values of banknotes in the machine) and S (the amount of money requested by the user). (1≤a,b≤10000, a≠b, 0≤S≤10^{9}). Integers in each line are separated by a space.

For each test case print a single line in the output with two integers – numbers of banknotes of each value which must be issued by ATM. In case when it‘s not possible to issue requested amount, print the word “Impossible” (without quotes).

Input

3 1 10 23 3 2 7 4 6 2

Output

3 2 1 2 Impossible

**26 人解决**，39 人已尝试。

**30 份提交通过**，共有 129 份提交。

**5.2** EMB 奖励。

题目标签