import java.io.*; import java.util.*; class Main51 { public static void out (Object out) { System.out.println(out); } public static void main (String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int w = Integer.parseInt(br.readLine()); int d = Integer.parseInt(br.readLine()); int ans = 0; for (int i = 0; i < d; i++) w -= (ans = w / ((d - i) * (d - i))); out(ans); } }