Fixing Fractions
시간 제한1초메모리 제한1024 MB
두 분수가 주어질 때, 첫 번째 분수의 분자와 분모에서 같은 숫자를 지워 남은 분수가 두 번째 분수와 정확히 같아지는 경우를 찾는다.
문제
Maths is hard.[citation needed] But it could be easier! And the internet™ has found some excellent ways to make it easier. Take a look at the following true equations:

Following the patterns, we come to the conclusion that the following equation should also be true:\vspace{-0.75\baselineskip}

However, this is actually wrong in boring old standard maths. Therefore, we define a new kind of funky maths where it is allowed to cancel out digits on the left side of the equality sign. This surely will make everyone's life easier. Except yours, since you have to evaluate if two given fractions are equal in our new funky maths.
입력
The input consists of:
- One line with four integers , , , and (), describing the two fractions and .
출력
If there exist integers and obtained from and by cancelling out the same digits and with in standard mathematics, output "possible", followed by and . Otherwise, output "impossible".
If there are multiple valid solutions, you may output any one of them.
Note that neither nor is allowed to contain leading zeroes after cancelling digits.