public class layApple {
public static void main(String[] args) {
int[] paras = getInput();
System.out.println(findNumsOfLaying(paras[0], paras[1]));
}
public static int[] getInput() {
@SuppressWarnings("resource")
Scanner reader = new Scanner(System.in);
int[] paras = new int[2];
paras[0] = reader.nextInt();
paras[1] = reader.nextInt();
return paras;
}
public static int findNumsOfLaying(int m, int n) {
if (m == 0 || n == 1) {
return 1;
}
if (n > m) {
return findNumsOfLaying(m, m);
} else {
return findNumsOfLaying(m - n, n) + findNumsOfLaying(m, n - 1);
}
}
}