Count ordered K-tuples of integers between 0 and N whose sum is N, modulo 1,000,000,000.
Write a program that counts the ways to add KKK integers, each between 000 and NNN inclusive, so that their sum is NNN.
Order matters: 1+21+21+2 and 2+12+12+1 count as different ways. The same number may be used more than once.
The first line contains two integers NNN and KKK (1≤N≤5,0001 \le N \le 5{,}0001≤N≤5,000, 1≤K≤5,0001 \le K \le 5{,}0001≤K≤5,000).
Print the number of ways modulo 1,000,000,0001{,}000{,}000{,}0001,000,000,000 on the first line.