fun main (args:Array<String>) {
    val (intA, intB) = readLine()!!.split(" ").map(String::toLong)
    if(intA % 2 != intB % 2){
        print("IMPOSSIBLE")
        return
    }
    print((intA + intB) / 2)
}