func main() var n: int :: cui@inputInt() var m: int :: cui@inputInt() var totalNum: int :: n / 1000 var num: int :: totalNum / m var ans: int :: num * 1000 do cui@print("\{ans}\n") end func