#include <stdio.h>
#include <stdint.h>
typedef union {
uint32_t value;
struct{
uint8_t byte1:8;
uint8_t byte2:8;
uint8_t byte3:8;
uint8_t byte4:8;
}extract;
} Register;
// Write logic here using union to modify byte[1] and byte[2]
void modify_and_print(uint32_t input, uint8_t b1, uint8_t b2) {
// Your logic here
Register reg;
reg.value = input;
reg.extract.byte2 = b1;
reg.extract.byte3 = b2;
printf("%u",reg.value);
}
int main() {
uint32_t num;
uint8_t b1, b2;
scanf("%u %hhu %hhu", &num, &b1, &b2);
modify_and_print(num, b1, b2);
return 0;
}