Let $n$ be a positive integer. When the leftmost digit of the standard base 10 representation of $n$ is shifted to the rightmost position (the units position), the result is $\frac{n}{3}$. Find the smallest possible value of the sum of the digits of $n$.

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