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