inp = require('fs').readFileSync('/dev/stdin', 'utf8').split('\n')[0].split(' ')
A = inp.shift()
B = inp.shift()
console.log((A % 3 == 0 || B % 3 == 0 || (A + B) % 3 == 0) ? 'Possible' : 'Impossible')