eolymp
bolt
Try our new interface for solving problems
Problems

K-permutation

K-permutation

Let's call a permutation of n numbers 1 ... n a k - permutation if any two adjacent elements in it differ by no more than k.

Find the number of k-permutations from the numbers 1 ... n.

Input

Two integers n, k (1kn9).

Output

Print the number of k-permutations from the numbers 1 ... n.

Time limit 1 second
Memory limit 128 MiB
Input example #1
3 1
Output example #1
2