fun main(args: Array<String>) {
    abc067a()
}

fun abc067a() {
    val (a, b) = readLine()!!.split(" ").map { it.toInt() }

    val answer = listOf(a, b, a + b).any { it % 3 == 0 }.let { if (it) "Possible" else "Impossible" }

    println(answer)
}
