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