public class No_128 { public static void main(String[] args) { java.util.Scanner sc = new java.util.Scanner(System.in); int otoshidama = sc.nextInt(); int paperMoney = otoshidama / 1000; int child = sc.nextInt(); System.out.println(paperMoney / child); sc.close(); } }