#include <stdio.h>
#include <stdint.h>
uint16_t spread_bits(uint8_t val) {
// Your logic here
uint16_t result = val;
//Shift the top 4 bits of the byte left by 4 positions.
result = (result | (result << 4)) & 0x0F0F;
//Shift by 2 and OR.
result = (result | (result << 2)) & 0x3333;
//Shift by 1 and OR.
result = (result | (result << 1)) & 0x5555;
return result;
}
int main() {
uint8_t val;
scanf("%hhu", &val);
uint16_t result = spread_bits(val);
printf("%u", result);
return 0;
}