#include <stdio.h>
#include <stdint.h>
uint32_t set_bits(uint32_t reg, uint8_t pos, uint8_t len) {
// Your code here
// used while loop for length and pos + i to specify the no of bits to set
int i = 0;
while(i < len)
{
reg |= (1 << pos + i);
i++;
}
return reg;
}
int main() {
uint32_t reg;
uint8_t pos, len;
scanf("%u %hhu %hhu", ®, &pos, &len);
printf("%u", set_bits(reg, pos, len));
return 0;
}