process.stdin.resume();
process.stdin.setEncoding('utf8');

// your code goes here
function Main(input) {
	var tmp = input.split(" ");
	var a = parseInt(tmp[0], 10);
	var b = parseInt(tmp[1], 10);
	
	if (a % 3 === 0 || b % 3 === 0 || (a + b) % 3 === 0) {
		console.log("Possible");
	} else {
		console.log("Impossible")	
	}
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));process.stdin.resume();