function Main(input) {
  const numbers = input.split(' ').map(n => Number(n));
  const a = numbers[0];
  const b = numbers[1];
  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"));