(define n (read)) (define m (read)) (print (*(floor(/(/ n m) 1000))1000))