package main import ( "fmt" ) func main() { var n, m int64 fmt.Scan(&n, &m) fmt.Println(n / m / 1000 * 1000) }