import java.lang.Math
import scala.io.StdIn.{readLine,readInt}
import java.io._
import scala.collection.mutable.ArrayBuffer

object Main {
   def main(args: Array[String]) {
       val br = new BufferedReader(new InputStreamReader(System.in))
       val out = new PrintWriter(new OutputStreamWriter(System.out))
       val in = new StreamTokenizer(br)
       
       def nextInt:Int = {
           in.nextToken()
           in.nval.toInt
       }
       
       val a = nextInt
       val b = nextInt
       val g = 3
       if (a % g == 0 || b % g == 0 || (a+b) % g == 0) {
    		println("Possible");
    	} else {
    		println("Impossible");
    	}
       
       
	
   }
  
}