
import java.util.*

fun main( argv : Array<String> ) {
    
    val scan = Scanner(System.`in`)
    
    //
    val A = scan.nextInt()
    val B = scan.nextInt()
    
    //
    when {
        A/3*3==A -> println("Possible")
        B/3*3==B -> println("Possible")
        (A+B)/3*3==A+B -> println("Possible")
        else -> println("Impossible")
    }

}
