import java.util.Scanner; public class No128 { public static void main(String[] args) { Scanner s = new Scanner(System.in); long budget = s.nextLong(); int children = s.nextInt(); System.out.println(budget / children / 1000 * 1000); } }