| CodeRams Practice Problem Archive |
|---|
| Finished |
You have two numbers, and you decide to apply a special addition technique on them: you convert both numbers to quaternary (base 4), and add each digit pair separately. If this results in a number greater than or equal to 4, you subtract four from the result.
For example, if you had the numbers 322312 and 213200 in base 4, the result would be 131112.
Given two numbers in base ten, apply this technique on them, and convert the result back into base 10.
The first line of input contains a single positive integer $$$a$$$.
The second line of input contains a single positive integer $$$b$$$.
Print the result of applying the operation described above on $$$a$$$ and $$$b$$$, converted back into decimal (Base 10).
7 9
12
67 130
193
45 1003
964
| Name |
|---|


