During summer vacation,Alice stay at home for a long time, with nothing to do. She went out and bought m pokers, tending to play poker. But she hated the traditional gameplay. She wants to change. She puts these pokers face down, she decided to flip poker n times, and each time she can flip Xi pokers. She wanted to know how many the results does she get. Can you help her solve this problem?
Input
The input consists of multiple test cases.
Each test case begins with a line containing two non-negative integers n and m(0<n,m<=100000).
The next line contains n integers Xi(0<=Xi<=m).
Output
Output the required answer modulo 1000000009 for each test case, one per line.
Sample Input
Sample Output
Hint
For the second example:
0 express face down,1 express face up
Initial state 000
The first result:000->111->001->110
The second result:000->111->100->011
The third result:000->111->010->101
So, there are three kinds of results(110,011,101)
给出m张牌,每次可以翻动一些牌,问最后牌的可能情况。因为每次都是随便翻的,只要能确定最后有几张牌是正面朝上,那么就可以
用组合数直接计算,然后我们可以考虑,正面朝上的可能情况,分为上下界[L,R]显然,LR是同奇偶的,并且中间的间隔都是2,