fun main(){val t=readLine()!!.toDouble()/1000 val n=readLine()!!.toDouble() println(kotlin.math.floor(t/n)*1000)}