#include <stdio.h>
#include <stdint.h>
uint8_t rotate_left(uint8_t reg, uint8_t n) {
// Your code here
uint8_t mask = reg >> (8 - n); // FIrst get the bits values from the left most side
reg = reg << n; //Move the Register by n bits to fill the remaining position on the MSB side
reg &= ~(n);// Clear the MSB
reg |= mask;// Fill the MSB with the mask
return reg;
}
int main() {
uint8_t reg, n;
scanf("%hhu %hhu", ®, &n);
printf("%u", rotate_left(reg, n));
return 0;
}