import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int W = scan.nextInt(); int D = scan.nextInt(); int r = 0; scan.close(); while(D > 0) { r = W / (D * D); W = W - r; D --; } System.out.println(r); } }