/** * Created by karayuu on 2018/11/23 */ fun main(args: Array) { var w = readLine()!!.toDouble() var d = readLine()!!.toInt() var motivation: Double = 0.0 while (d >= 1) { motivation = w / (d * d) w -= Math.floor(motivation) d-- } println(Math.floor(motivation).toInt()) }