Given a polynomial P with coefficients from 0,1, print the number of odd coefficients in its n-th power.
The first line contains an integer d (1≤d≤20) --- the degree of the polynomial.
The second line contains d+1 integers a_i (a_i∈0,1), denoting the coefficients of P from lowest to greatest.
The third line contains an integer n (1≤n≤1016).
Print the answer to the problem in the only line.
In the first sample test P(x)3=1+3x+3x2+x3, having all 4 coefficients odd.