'use strict'

function main(input) {
  input = input
    .trim()
    .split(' ')
    .map(Number)
  const a = input[0]
  const b = input[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'))
