#include <stdio.h>
#include <stdint.h>
uint32_t extract_even_bits(uint32_t reg) {
// Your code here
uint32_t maskBit = 0;
int j = 0;
for(int i = 0; i < sizeof(uint32_t) * 8; i += 2)
{
// If bit i is set, place it in the result at the next position
if((reg >> i) & 1)
{
maskBit |= (1 << j);
}
j++;
}
return maskBit;
}
int main() {
uint32_t reg;
scanf("%u", ®);
printf("%u", extract_even_bits(reg));
return 0;
}