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