fun main(){println(kotlin.math.floor(f()/1000/f()).toInt())}fun f()=readLine()!!.toDouble()