'use strict'

function main(s) {

  s = s.split('\n')[0].split(' ').map(n => Number(n));
  const a = s[0];
  const b = s[1];

  const ans = a % 3 === 0 || b % 3 === 0 || (a + b) % 3 === 0;

  console.log(ans ? 'Possible' : 'Impossible');
}

main(require("fs").readFileSync("/dev/stdin", "utf8"));
