**Problem 3.** A three-digit number ending in $2$ is written on the board. If we erase the $2$ and place it at the beginning of the number, the number decreases by $36$. What is the sum of the digits of the number?

Let's think step by step and output the final answer within \boxed{}.
user