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