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]);
    var C = A+B;
    
    if (A <= 0 || B > 100){
        console.log("Impossible");
    }else if (A%3 == 0 || B%3 == 0 || C % 3 == 0){
        console.log("Possible");
    }else{
        console.log("Impossible");
    }
});