#include <stdio.h>
#include <stdint.h>
uint32_t extract_even_bits(uint32_t reg) {
uint32_t result = 0; // to store compressed even bits
int pos = 0; // position in result
for (int i = 0; i < 32; i += 2) {
// extract the even-positioned bit
uint32_t bit = (reg >> i) & 1;
// place it in the result at position 'pos'
result |= (bit << pos);
// move to next result bit position
pos++;
}
return result;
}
int main() {
uint32_t reg;
scanf("%u", ®);
printf("%u", extract_even_bits(reg));
return 0;
}