Objective
Given an integer \$n\$ interpreted as two's complement binary, output two integers, namely the integer consisting of \$n\$'s bits at places of \$2^0, 2^2, 2^4, \cdots\$, and the integer consisting of \$n\$'s bits at places of \$2^1, 2^3, 2^5, \cdots\$.
Note that the input may be negative. Since \$n\$ is interpreted as two's complement binary, nonnegative integers start with infinitely many zeros, and negative integers start with infinitely many ones. As a consequence, nonnegative inputs split into nonnegative outputs, and negative inputs split into negative outputs.
Examples
Here, the integers are represented as decimal.
Input, Output even, Output odd
0, 0, 0
1, 1, 0
2, 0, 1
3, 1, 1
4, 2, 0
5, 3, 0
6, 2, 1
7, 3, 1
8, 0, 2
9, 1, 2
10, 0, 3
11, 1, 3
12, 2, 2
13, 3, 2
14, 2, 3
15, 3, 3
-1, -1, -1
-2, -2, -1
-3, -1, -2
-4, -2, -2
Worked Example
Say the input is 43, or 101011 in binary.
The "even" output selects the bits like this:
...0000101011
... ^ ^ ^ ^ ^
which is ...00001, or 1 in decimal.
The "odd" output selects the bits like this:
...0000101011
...^ ^ ^ ^ ^
which is ...00111, or 7 in decimal.
I/O format
Flexible; default I/O policies apply.
3,0for input of5when it's binary representation is0b_101\$\endgroup\$0bxyzwould break to0bxzand0by. \$\endgroup\$