#include <stdio.h>
#include <stdint.h>
uint8_t set_bit(uint8_t reg, uint8_t pos) {
// Set the bit at position 'pos' using OR
return reg | (1 << pos);
}
int main() {
uint8_t reg, pos;
scanf("%hhu %hhu", ®, &pos); // Accept register value and position
if (pos > 7) { // Validate bit position for 8-bit register
printf("Invalid bit position\n");
return 1;
}
uint8_t result = set_bit(reg, pos);
printf("%u\n", result); // Output the result as an integer
return 0;
}