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