5337: Product

内存限制:512 MB 时间限制:1.000 S
评测方式:文本比较 命题人:
提交:0 解决:0

题目描述

Bob has three integers n,k,D.
For a non-negative integer sequence a1...n, we denote the weight of it is:
D! / (∏i=1(ai+k)!)
Now Bob wants to know the sum of the weight of all of the sequences a1...n which satisfies the following conditions:
  1. ∀i∈[1,n],ai≥0
  2. i=1ai=D
If the answer is irreducible fraction x/y, you need to output an integer dd in [0,998244352] which satisfies d * y mod 998244353=x mod 998244353.  
It's guaranteed that y mod 998244353≠0.

输入

The first line has three integers n,k,D.
1≤n≤50.
0≤k≤50.
0≤D≤108.

输出

Output the answer.

样例输入 复制

3 1 5

样例输出 复制

748683282