object Main{
  def main(args: Array[String]){
    val input=io.Source.stdin.getLines().mkString("\n")
    println(solve(input).trim())
  }

  def solve(input:String):String={
    val Array(a,b)=input.split(" ").map(_.toInt)
    if(a%3==0 || b%3==0 || (a+b)%3==0){
      "Possible"
    }else{
      "Impossible"
    }
  }
}
