You are given three integers

, You need to calculate the number of sequence
)
that satisfies both of the following conditions:
-
For each
,
.
-
We let sequence
be the sequence obtained by rotating sequence
once,
Where

represents bitwise XOR, one rotation operation will change
)
to
)
.
)
represents the number of

s in the binary representation of

.
输入描述:
One line containing
integers
(
,
,
).
输出描述:
Output one line containing an integer, representing the answer
.
备注:
In the first example,
can be
or
.
In the second example,
can be
,
,
,
,
,
,
,
.