function main(s) {
	s = s.split("\n")[0].split(" ").map(x => Number(x));
	console.log((s[0]%3===0)||(s[1]%3===0)||((s[0]+s[1])%3===0)?"Possible":"Impossible");
}
main(require("fs").readFileSync("/dev/stdin", "utf8"));

