ATM Game

No attempts yetTime limit1sMemory limit128 MB

Problem

An ATM holds a very large supply of two different denominations of bills. When money is withdrawn, the ATM dispenses exactly the requested amount, as long as it does not exceed the account holder's balance. The customer prefers to carry as few bills as possible, so they want to use the smallest possible total number of bills.

Write a program that dispenses the requested amount exactly while using the minimum total number of bills. You may assume the ATM contains an unlimited supply of each denomination.

Input

The first line contains the number of test cases TT. Each test case is given on a single line containing the two denominations aa and bb held by the ATM and the amount SS to withdraw, separated by spaces.

Output

For each test case, print the number of bills of denomination aa followed by the number of bills of denomination bb, in this order and separated by a space, that dispense exactly SS using the minimum total number of bills. If it is impossible to dispense the amount exactly, print "Impossible" (without the quotes).

Constraints

  • 1T1001 \le T \le 100
  • 1a,b100001 \le a, b \le 10000
  • aba \ne b
  • 0S1090 \le S \le 10^9