h, s = input().split()
a, b = int(h[-1]), int(s[-1])
if (a + b) % 2 == 0:
	print("Possible")
else:
	print("Impossible")