import scala.io.StdIn._
object Main extends App {
  val input = readLine().split(" ").map(_.toInt)
  val a = input(0)
  val b = input(1) 
    
  val result = if ((a % 3 == 0) || (b % 3 == 0) || ((a + b) % 3 == 0))) "Possible" else "Impossible"
  println(result)
}