'use strict'

const main = input => {
	const args = input.split('\n').map(arg => arg.split(' '))
	const A = parseInt(args[0][0], 10)
	const B = parseInt(args[0][1], 10)
	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'))
