'use strict'

function main(input) {
  input = input.split(' ').map(v => ~~v)

  let ans = 'Impossible'
  if (
    input[0] % 3 == 0 ||
    input[1] % 3 == 0 ||
    (input[0] + input[1]) % 3 == 0
  ) {
    ans = 'Possible'
  }

  console.log(ans)
}
main(require("fs").readFileSync("/dev/stdin", "utf8"));
