function Main(input) {
	input = input.trim();
	//input = input.trim().split(" ");
	//input = input.trim().split("\n");
	input = input.trim().split(" ").map((a)=>Number(a));
	//input = input.trim().split("\n").map((a)=>Number(a));
  	var list = [input[0]+input[1],input[0],input[1]];	
  if(list[0] % 3 == 0 || list[1] % 3 == 0 || list[2] % 3 == 0){
     console.log("Possible");
     }else{
     console.log("Impossible");
     }
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
