#include <stdio.h>
#include <stdint.h>
uint32_t set_baud_rate(uint32_t reg, uint8_t baud)
{
uint32_t field = (((1 << 4) - 1) << 8); //create field of 1s
reg &= ~field; //empty field on the reg
reg |= ((baud & (1 << 4) - 1) << 8); //add in the value in the cleared field
return reg;
}
int main() {
uint32_t reg;
uint8_t baud;
scanf("%u %hhu", ®, &baud);
printf("%u", set_baud_rate(reg, baud));
return 0;
}