#! ruby # yukicoder My Practice # author: Leonardone @ NEETSDKASU N = gets.to_i M = gets.to_i puts N.div(1000).div(M).*(1000)