object Main {
  def main(args: Array[String]) {
    val sc = new java.util.Scanner(System.in)
    val a, b = sc.nextInt

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

    println(ans)
  }
}
