fun main(argc:Array<String>) {
    val line = readLine()!!
    val arr = line.split(' ')
    val a = Integer.parseInt(arr[0])
    val b = Integer.parseInt(arr[1])
    println(if ((a+b)%2 == 0) "%d".format((a+b)/2) else "IMPOSSIBLE")
}