print(((eval(input().replace(*' *'))%3%2*'Imp'or'P')+'ossible'))
print(f"{eval(input().replace(*' *'))%3%2*'Imp'or'P'}ossible")
print(((eval(input().replace(*" *")) % 3 % 2 * "Imp" or "P") + "ossible"))

print(f"{eval(input().replace(*' *'))%3%2*'Imp'or'P'}ossible")

-print(((eval(input().replace(*" *")) % 3 % 2 * "Imp" or "P") + "ossible")) +print(f"{eval(input().replace(*' *'))%3%2*'Imp'or'P'}ossible")