package yukicoder; import java.util.Scanner; public class Yuki11 { public static void main(String[] args) { final int thousand = 1000; Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int m = scan.nextInt(); scan.close(); System.out.println(thousand*(n/(m*thousand))); } }