import java.util.* // Scanner

fun main(args: Array<String>) {

    val _s = Scanner(System.`in`)

    //
    val a_ = _s.nextInt()
    val b_ = _s.nextInt()

    //
    var ret = 
        if(
            a_ % 3 == 0 ||       
            b_ % 3 == 0 || 
            (a_ + b_) % 3 ==0) 
            
        {
            "Possible"
        } else {
            "Impossible"
        }

    println(ret)
}