p, q = map(int, input().split()) S = "" if 3 * p <= q: print("Impossible") exit() elif 2 * p == q: print("Impossible") exit() elif 2 * p <= q: x = 40000 S += "U" * 2 S += "R" * 2 * x S += "D" * 3 S += "R" * x S += "U" * 2 S += "R" * x S += "D" * 3 S += "R" * 2 * x S += "U" * 2 else: x = 120000 S += "U" S += "R" * x S += "D" * 2 S += "R" * x S += "U" x, y = 0, 0 XY = [(x, y)] for s in S: if s == "U": y += 1 elif s == "D": y -= 1 elif s == "R": x += 1 elif s == "L": x -= 1 XY.append((x, y)) print("Possible") print(len(XY) - 1) for x, y in XY: print(x, y)