#Q19. 「一本通 1.3 例 1」数的划分

「一本通 1.3 例 1」数的划分

Description

Partition the integer nn into kk parts, where each part must be non-empty. Determine how many distinct partition methods exist. For example, when n=7n=7 and k=3k=3, the following three partition methods are considered the same: 1,1,51,1,5; 1,5,11,5,1; 5,1,15,1,1.

Input Format

One line containing two integers, nn and kk.

Output Format

One line with a single integer representing the number of distinct partition methods.

Sample 1

The four partition methods are: 1,1,51,1,5; 1,2,41,2,4; 1,3,31,3,3; 2,2,32,2,3.

7 3

4

Data Range and Hint

6n200,6 \leq n \leq 200, 2k62 \leq k \leq 6.