A,B = list(map(int, input().split()))

if A%3 == 0 or B%3==0 or (A+B)%3 ==0:

    print('Possible')

else:

    print('Impossible')

A,B = list(map(int,input().split()))

print(('Possible' if A%3==0 or B%3==0 or (A+B)%3==0 else 'Impossible'))
A, B = list(map(int, input().split()))
if A % 3 == 0 or B % 3 == 0 or (A + B) % 3 == 0:
    print("Possible")
else:
    print("Impossible")

A, B = list(map(int, input().split()))
print(("Possible" if A % 3 == 0 or B % 3 == 0 or (A + B) % 3 == 0 else "Impossible"))

-if A % 3 == 0 or B % 3 == 0 or (A + B) % 3 == 0: -    print("Possible") -else: -    print("Impossible") +print(("Possible" if A % 3 == 0 or B % 3 == 0 or (A + B) % 3 == 0 else "Impossible"))