Given two numbers, and , your task is to compute the value of x = (36 \times a + \left\lfloor b / 16 \right\rfloor) \bmod 32 using only bitwise operations, addition, and subtraction.
The input consists of two integers separated by a space, where 0 \leq a, b \leq 10^6.
The output should be a single integer representing the value of x = (36 \times a + \left\lfloor b / 16 \right\rfloor) \bmod 32.
Example 1