h, s = read_line.split puts (h[-1].to_i - s[-1].to_i) % 2 == 0 ? "Possible" : "Impossible"