import sys
input = sys.stdin.readline
H, S = input().split()
yes = "Possible"
no = "Impossible"
h = int(H[-1])
s = int(S[-1])
if (h+s)%2==0:
    print(yes)
else:
    print(no)