object Main extends App {
  val list = readLine.split(" ").map(_.toInt)
  println(
    if ( 
      (list(0) + list(1)) % 3 == 0 ||
      list(0) % 3 == 0             ||
      list(1) % 3 == 0
    ) {
      "Possible"
    } else {
      "Impossible"
    }
  )
}