#include <stdio.h>
#include <stdint.h>
#define SETMODE(x) (x<<0)
#define SETSPEED(x) (x<<3)
#define SETSTATUS(x) (x<<10)
uint16_t pack_register(uint8_t mode, uint8_t speed, uint8_t status) {
// Your logic here
return SETMODE(mode) | SETSPEED(speed) |SETSTATUS(status);
}
int main() {
uint8_t mode, speed, status;
scanf("%hhu %hhu %hhu", &mode, &speed, &status);
uint16_t reg = pack_register(mode, speed, status);
printf("%u", reg);
return 0;
}