object ABC067A extends App {
  val in = io.StdIn.readLine().split(" ").map(_.toInt)
  val A = in(0)
  val B = in(1)
  if (A % 3 == 0 || B % 3 == 0 || (A + B) % 3 == 0)
    println("Possible")
  else
    println("Impossible")

}