A sequence p(1),p(2),…,p(N) made up of the numbers 1,2,…,N is called a permutation if all of its elements are distinct.
A permutation p is said to contain an increasing subsequence of length k when there exist indices 1≤i1<i2<⋯<ik≤N such that p(i1)<p(i2)<⋯<p(ik).
When a permutation p contains an increasing subsequence of length B but does not contain one of length B+1, the number B is called the degree of increase of that permutation.
Given a number N, write a program that counts the permutations whose degree of increase is exactly B. Because this count can be very large, output its remainder modulo 1,000,000,000.
The input consists of a single line containing two integers N and B (1≤N≤40, 1≤B≤5), separated by one or more spaces.
Output a single integer: the number of permutations whose degree of increase is exactly B, taken modulo 1,000,000,000.