KBTU Party

No attempts yetTime limit2sMemory limit128 MB

Problem

At the KBTU graduation party there are nn girls D1,D2,,DnD_1, D_2, \dots, D_n and 2n12n-1 boys B1,B2,,B2n1B_1, B_2, \dots, B_{2n-1}. Girl DjD_j is acquainted with exactly the boys B1,B2,,B2j1B_1, B_2, \dots, B_{2j-1} (the first 2j12j-1 boys).

We want to pick exactly rr dancing pairs. Each pair consists of one girl and one boy who are acquainted, and no student may belong to more than one pair (every girl and every boy appears in at most one chosen pair). Count the number of ways to choose such a set of rr pairwise-disjoint acquainted pairs. Two choices are considered different if their sets of pairs differ.

Input

Two integers nn and rr (1n,r1061 \le n, r \le 10^6) separated by a space.

Output

Print the number of ways, taken modulo 29468592946859.