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