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