import java.util.*

fun main(args: Array<String>) {
val read = Scanner(System.`in`)
    val a = read.nextInt()
    val b = read.nextInt()

    if (a == b) println("IMPOSSIBLE")
    if ((a + b) % 2 != 0 ) println("IMPOSSIBLE") else println((a + b) / 2)
}