H,S = input().split() a = int(H[-1]) b = int(S[-1]) if (a - b) % 2 == 0: print('Possible') else: print('Impossible')