#include <stdio.h>
#include <stdint.h>
uint32_t set_baud_rate(uint32_t reg, uint8_t baud) {
// Your code here
// Firsly clear the bits from 8 to 11
//uint8_t mask = ((1 << 4) - 1) << 8;
// reg &= ~mask;
reg &= ~(0xF << 8);
// Set the new bits
reg |= (baud & 0xF) << 8;
return reg;
}
int main() {
uint32_t reg;
uint8_t baud;
scanf("%u %hhu", ®, &baud);
printf("%u", set_baud_rate(reg, baud));
return 0;
}