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