#include <stdio.h>
#include <stdint.h>
uint32_t set_baud_rate(uint32_t reg, uint8_t baud) {
// Your code here
uint32_t mask = ((1U << 4) - 1) << 8;//4 because baud val is 4 bits and 8 because it is given in question that its the position
reg &= ~(mask);
reg |= baud << 8;
return reg;
}
int main() {
uint32_t reg;
uint8_t baud;
scanf("%u %hhu", ®, &baud);
printf("%u", set_baud_rate(reg, baud));
return 0;
}