import java.util.Scanner

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

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