fun main(args: Array<String>) {
    val input = readLine() ?: ""
    val input_list = input.split(" ")
        .map(String::toInt) 
    val sum = input_list.sum()
    when (sum % 2) {
        0 -> println( sum / 2 )
        else -> println( "IMPOSSIBLE" )
    }
}