Bobo has a binary sequence a_1a_2…a_n. And he wants to count the number of sequences as x_1,x_2,…,x_n satisfying the following conditions modulo (109+7).
The first line contains 2 integers n,m (1≤n≤5000000,1≤m≤10).
The second line contains n integers a_1a_2…a_n (0≤a_i≤1).
A single number denotes the number of sequence.