import scala.math._ object Main { def main(args: Array[String]) { val sc = new java.util.Scanner(System.in) val n, m = sc.nextLong val d = n / (m * 1000) println(d * 1000) } }