let N = Int(readLine()!) let M = Int(readLine()!) print(Int(N! / (M! * 1000) * 1000))