a,b = list(map(int,input().split()))

print(("Possible" if not a%3 or not b%3 or not (a+b)%3 else "Impossible")) 

#!/usr/bin/env python3

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 not a % 3 or not b % 3 or not (a + b) % 3 else "Impossible"))

#!/usr/bin/env python3
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")

+#!/usr/bin/env python3 -print(("Possible" if not a % 3 or not b % 3 or not (a + b) % 3 else "Impossible")) +if a % 3 == 0 or b % 3 == 0 or (a + b) % 3 == 0: +    print("Possible") +else: +    print("Impossible")