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