import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)

  val a = sc.nextInt
  val b = sc.nextInt

  val res = if(a % 3 == 0 || b % 3 == 0 || (a + b) % 3 == 0) "Possible" else "Impossible"

  println(res)
}
