#ARC156D. [ARC156D] Xor Sum 5
[ARC156D] Xor Sum 5
Score : points
Problem Statement
You are given a sequence of non-negative integers and a positive integer .
Find the bitwise of over all sequences of positive integer sequences such that .
What is bitwise ?
The bitwise of non-negative integers and , , is defined as follows:
- When is written in base two, the digit in the 's place () is if exactly one of the digits in that place of and is , and otherwise.
Generally, the bitwise \mathrm{XOR} of k non-negative integers p_1, p_2, p_3, \dots, p_k is defined as (\dots ((p_1 \oplus p_2) \oplus p_3) \oplus \dots \oplus p_k). We can prove that this value does not depend on the order of p_1, p_2, p_3, \dots, p_k.
Constraints
- All values in the input are integers.
Input
The input is given from Standard Input in the following format:
Output
Print the answer.
There are four sequences to consider: , for which is , respectively. Thus, the answer is .