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