Inversions

아직 제출이 없습니다시간 제한3초메모리 제한256 MB

문제

For a permutation pp, denote the number of inversions in it as inv(p)\mathit{inv}(p). An inversion is a pair of indices 1i<jp1 \le i < j \le |p| such that p_i>p_jp\_i > p\_j.

Given are integers nn and kk. Find the sum of inv(p)k\mathit{inv}(p)^k over all permutations pp of length nn. As the answer can be very large, find it modulo 998,244,353998\\,244\\,353.

입력

The only line contains two integers, nn and kk (1n10181 \le n \le 10^{18}, 1k10001 \le k \le 1000).

출력

Print the answer modulo 998,244,353998\\,244\\,353.

힌트

In the first example:

In permutation (1,2,3)(1,2,3), there are 00 inversions.

In (1,3,2)(1,3,2), there is 11 inversion.

In (2,1,3)(2,1,3), there is 11 inversion.

In (2,3,1)(2,3,1), there are 22 inversions.

In (3,1,2)(3,1,2), there are 22 inversions.

In (3,2,1)(3,2,1), there are 33 inversions. 

The answer is: 02+12+12+22+22+32=190^2 + 1^2 + 1^2 + 2^2 + 2^2 + 3^2 = 19.