function main(input) {
  input=input.trim();
  const a = parseInt(input.split(" ")[0], 10);
  const b = parseInt(input.split(" ")[1], 10);
  if(a%3!=0&&b%3!=0&&(a+b)%3!=0){
    console.log("Impossible");
  }else{
    console.log("Possible");
  }
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));