Seonggwan likes every array that satisfies all of the following conditions.
- The length of the array is N.
- Every element of the array is an integer between 1 and K, inclusive.
- If two adjacent elements are A and B in that order, then A≤B or AmodB=0.
For example, when N=4 and K=7, the array [1,7,7,2] is one that Seonggwan likes. Its three adjacent pairs satisfy 1≤7, 7≤7, and 7mod2=0.
Given N and K, write a program that counts the arrays Seonggwan likes.