import java.util.Scanner;
public class Appale {
public static int fun(int apple, int palte) {
if (apple < 0) {
return 0;
}
if (apple == 0 || palte == 1) {
return 1;
}
return fun(apple - palte, palte) + fun(apple, palte - 1);
}
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
while (scanner.hasNextInt()) {
int apple = scanner.nextInt();
int plate = scanner.nextInt();
System.out.println(fun(apple, plate));
}
}
}