"use strict";

const main = arg => {
    const A = parseInt(arg.split("\n")[0].split(" ")[0]);
    const B = parseInt(arg.split("\n")[0].split(" ")[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'));