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