function main (s) {
    s=s.split(" ");
	for(var i=0;i<2;i++)s[i]=parseInt(s[i]);
	if(s[0]%3==0||s[1]%3==0||(s[0]+s[1])%3==0)console.log("Possible\n");
	else console.log("Impossible\n");
}
 
main(require('fs').readFileSync('/dev/stdin', 'utf8'));