function Main (input) {
  input = input.split("\n")[0].split(" ").map(Number);
  var A = input[0];
  var B = input[1];
  var ans;
  
  if (A%3 == 0 || B%3 == 0 || (A+B)%3 == 0) {
    ans = "Possible";
  }
  else {
    ans = "Impossible"
  }
  console.log(ans);
}

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