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