e-olymp
Problems

23 out of 5

23 out of 5

Is it possible to find an arithmetic expression consisting of five given numbers that will yield the value 23. For this problem you can use only three arithmetic expressions: +, -, *. Assume that all these operations have the same priority and executed sequentially from left to right.

Input

Each line contains five positive integers from 1 to 50. Input is terminated by a line containing five zero's and is not processed.

Output

For each test case print "Possible" (without quotes) if their exists an arithmetic expression as described above that yields 23. Otherwise print "Impossible".

Time limit 1 second
Memory limit 128 MiB
Input example #1
1 1 1 1 1
1 2 3 4 5
2 3 5 7 11
0 0 0 0 0
Output example #1
Impossible
Possible
Possible