function main(input) {
  input = input.trim();
  const [a,b] = input.split(" ").map(Number);

  if((a+b)%3==0){
    console.log("Possible");
  }else{
    console.log("Impossible");
  }
}
main(require("fs").readFileSync("/dev/stdin", "utf8"));