fun main(args: Array){ val a = readLine()!!.toInt() val b = readLine()!!.toInt() val c = a / b if (c % 2 == 0) { println(0) } else { println((c / 2) * b) } }