def solve(): h, s = input().split() return int(h[-1]) % 2 == int(s[-1]) % 2 print('Possible' if solve() else 'Impossible')