Grasshopper#4051

Grasshopper

1 seconde
128 mégaoctets
Très facile

One of the teachers has a grasshopper living in their room, and it loves to jump on a one-dimensional checkered board of length cells. Unfortunately for the grasshopper, it can only jump forward by 1, 2, \dots, k cells.

One day, the teachers became curious about how many ways the grasshopper could jump from the first cell to the last. Help them answer this question.

Entrée

Two integers and k~(1 \le n \le 30, 1 \le k \le 10).

Sortie

Print the number of ways the grasshopper can jump from the first cell to the last.

Exemples

Exemple 1

Loading
Loading

Exemple 2

Loading
Loading

Exemple 4

Loading
Loading

Exemple 8

Loading
Loading