object Main extends App {
	val N = scala.io.StdIn.readLine.split(" ").map(_.toInt)

	if(N(0)%3 == 0 || N(1)%3 == 0 || (N(0) + N(1))%3 == 0){
		println("Possible")
	}else{
		println("Impossible")
	}
}

