#include <stdio.h>
#include <stdint.h>
uint8_t is_bit_set(uint8_t reg, uint8_t pos) {
// Your code here
// Create a mask with a 1 at the specified position
uint8_t mask = 1 << pos;
// Check if the bit is set
return (reg & mask) ? 1 : 0;
}
int main() {
uint8_t reg, pos;
scanf("%hhu %hhu", ®, &pos);
printf("%u", is_bit_set(reg, pos));
return 0;
}