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