fun main(args: Array<String>) {
    val sc = java.util.Scanner(System.`in`)
    val a = sc.nextLong()
    val b = sc.nextLong()

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