#include <stdio.h>
#include <stdint.h>
uint32_t extract_even_bits(uint32_t reg) {
// Your code here
uint32_t result =0;
int val_res =0;
for(int i=0;i<32;i+=2)
{
//Check if the bit is set or not by shifting the bit to the LSB
if((reg >> i)&1)
{
//if set store the bit in the result if not set the 0 remains in the position
result = result |(1U <<val_res);
}
//increment the result index value
val_res ++;
}
return result;
}
int main() {
uint32_t reg;
scanf("%u", ®);
printf("%u", extract_even_bits(reg));
return 0;
}