#Lutece3020. 黑板上的数

黑板上的数

Migrated from Lutece 3020 黑板上的数

All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.

Description

我们定义 mex(S)\mathrm{mex} (S) 为最小的未出现在多重集 SS 中的数,例如 $\mathrm{mex} (\{1,1,4,5,1,4\})=0,\mathrm{mex} (\{1,9,1,9,8,1,0\})=2$。

现在黑板上有 nn 个非负整数,第 ii 个为 aia_i

我们规定一次操作为:选择黑板上的 00 个或更多个数,令这些数的多重集为 SS,将 mex(S)\mathrm{mex} (S) 写在黑板上。

请你求出在执行 kk 次操作后,黑板上的数构成的多重集会有多少种,结果对 998244353998244353 取模。

Input

第一行包括两个整数 n,k(1n,k2×105)n,k(1\leq n,k\leq 2\times 10^5)

第二行包括 nn 个整数,a1,a2,,an(0ai2×105)a_1,a_2,\cdots,a_n(0\leq a_i\leq 2\times 10^5)

Output

输出一个整数代表答案。

Samples

3 1
0 1 3
3
6 6
1 1 4 5 1 4
114

Note

第一个样例中,可能得到的多重集有 {0,0,1,3},{0,1,1,3},{0,1,2,3}\{0,0,1,3\},\{0,1,1,3\},\{0,1,2,3\}

Resources

2023 UESTC ICPC Training for Math