import scala.io.StdIn

object Main extends App {
  val Array(a, b) = StdIn.readLine.split(" ").map(_.toInt)
  val ans = if((a&3) == 3 || (b%3) == 3 || ((a+b)%3) == 3) "Possible" else "Impossible"
  // print((a&3) + " " + (b&3) + " " + ((a+b)&3) + "\n")
  println(ans)
}