import java.io._
import java.util.StringTokenizer

/**
  * @author Aydar Gizatullin a.k.a. lightning95 on 30.05.17.
  */

object ProbD {

  def main(args: Array[String]) {
    val rw = new RW("input.txt", "output.txt")
    val n = rw nextInt
    val m = rw.nextInt
    rw println (if (n % 3 == 0 || m % 3 == 0 || (n + m) % 3 == 0) "Possible" else "Impossible")
    /* val n = rw nextInt
     var beg = false
     var mid = false
     var end = false
     var last = 0
     var ok = true
     for (_ <- 1 to n) {
       val x = rw.nextInt
       if (last < x) {
         if (!mid && !end)
           beg = true
         else
           ok = false
       }
       if (x == last) {
         if (end)
           ok = false
         else
           mid = true
       }
       if (last > x)
         end = true

       last = x
     }

     rw println (if (ok) "YES" else "NO")*/
    rw close()
  }

  class RW(val inputFile: String, val outputFile: String) {
    private var br = new BufferedReader(new InputStreamReader(System.in))
    private var out = new PrintWriter(new OutputStreamWriter(System.out))

    private val f = new File(inputFile)
    if (f.exists && f.canRead)
      try {
        br = new BufferedReader(new FileReader(inputFile))
        out = new PrintWriter(new FileWriter(outputFile))
      } catch {
        case e: IOException =>
          e.printStackTrace()
      }

    private var st = null: StringTokenizer
    var eof = false

    def nextLine: String = {
      var s = ""
      try
        s = br.readLine()
      catch {
        case e: IOException =>
          e.printStackTrace()
      }
      s
    }

    def next: String = {
      while (st == null || !st.hasMoreTokens)
        try
          st = new StringTokenizer(br.readLine)
        catch {
          case _: IOException =>
            eof = true
            ""
        }
      st.nextToken
    }

    def nextLong: Long = next.toLong

    def nextInt: Int = next.toInt

    def println(): Unit = out.println()

    def println(o: Any): Unit = out.println(o)

    def print(o: Any): Unit = out.print(o)

    def close(): Unit = {
      try
        br.close()
      catch {
        case e: IOException =>
          e.printStackTrace()
      }

      out.close()
    }
  }

}

