#C. 地地斗斗主主

    Type: Default 1000ms 256MiB

地地斗斗主主

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Background

请勿因题目名称而惊慌,出题人很菜,本题难度远小于 ''.join(random.choice(list(itertools.permutations("斗地主"))))

Description

小果在玩地地斗斗主主

一副牌共有cc种大小的牌,第ii种大小共有aia_i

小果有nn个卡槽,编号11~nn,他闭着眼睛摸了一手牌,使得每个卡槽内恰好有11张牌

如果卡槽i,i+1,i+2,,i+c1i,i+1,i+2,\cdots ,i+c-1内牌的大小恰好分别为1,2,3,,c1,2,3,\cdots,c,则称这是一个天地顺

小果想知道一共有多少种可能,使得这手牌内恰有kk个天地顺

两手牌被认为是不同的,当且仅当存在至少一个卡槽,槽内的牌大小不相等

答案对998,244,353998,244,353取模

Format

Input

第一行,三个正整数n,c,kn,c,k

第二行,cc个正整数aia_i

Output

一行,一个非负整数,表示答案对998,244,353998,244,353取模

Samples

4 2 1
4 4
10

Limitation

1n,c,k,ai1001\le n,c,k,a_i \le 100

ain\sum{a_i} \ge n