
The input consists of:
If there exist integers $$$a'$$$ and $$$b'$$$ obtained from $$$a$$$ and $$$b$$$ by cancelling out the same digits and with $$$\frac{a'}{b'} = \frac{c}{d}$$$ in standard mathematics, output "possible", followed by $$$a'$$$ and $$$b'$$$. Otherwise, output "impossible".
If there are multiple valid solutions, you may output any one of them.
Note that neither $$$a'$$$ nor $$$b'$$$ is allowed to contain leading zeroes after cancelling digits.
163 326 1 2
possible 1 2
871 1261 13 39
possible 87 261
123 267 12339 23679
impossible
| Name |
|---|


