process.stdin.resume();
process.stdin.setEncoding('utf8');
// Here your code !
// Here your code !
process.stdin.on('data', function (chunk) {
    var lines = chunk.toString().split(' ');
    var A =parseInt(lines[0]);
    var B =parseInt(lines[1]);
    
    if (A >= 1 && B <= 100 && A+B % 3){
        console.log("Posiible");
    }else{
        console.log("Impossible");
    }
    
});