function main(input) {
  var a = input[0].split(" ")[0]-0;
  var b = input[0].split(" ")[1]-0;
  var ans = a%3==0||b%3==0||(a+b)%3==0;
  console.log(ans?"Possible":"Impossible");
}
main(require('fs').readFileSync('/dev/stdin', 'utf8').trim().split("\n"))
