XOR is a bitwise operator that evaluates the resulting bit into 1 if and only if their corresponding input bits differ (one of them is 1 while the other is 0). XOR operator is usually written with a symbol , or in most programming languages, the character ^ (caret). For example, .
In this problem, you are given an integer and a set of integers . Your task is to count how many pairs of integers such that , and .
For example, let and . There are 6 pairs of that satisfy the condition.
Observe that a pair such as does not satisfy the condition for this example as but . Another pair such as also does not satisfy the condition as it violates the requirement .
输入格式
Input begins with a line containing two integers (; ) representing the given and the size of the set of integers . The next line contains integers () representing the set of integers .
输出格式
Output contains an integer in a line representing the number of such that and .