There is an array a containing n integers. Also, there is initially empty array b. Some elements of a are going to be added to b. Each element is added with probability P independently from others. Then the value of s is to be computed: s=⊕_i=0∣b∣b_i where ⊕ is bitwise exclusive OR (if the array b is empty, s equals to zero). You are required to compute the expected value of s2.
The first line of input contains three integers n, X and Y. The probability P is equal to YX.
The second line contains n integers a_i divided by spaces --- elements of the array a.
The answer can be always represented as a fraction vu where u and v are co-prime numbers and v=0mod(109+7) You are required to output only one number --- u×v−1mod(109+7)