function Main(input) {
  input = input.trim()
  input = input.split(" ").map(Number);
if(input[0]%3==0||input[1]%3==0||(input[1]+input[0])%3==0){
console.log("Possible");
}else{
console.log("Impossible")
}
}Main(require("fs").readFileSync("/dev/stdin", "utf8"));