Let $N$ be the smallest positive integer such that $N + 2N + 3N + \ldots + 9N$ is a number all of whose digits are equal. What is the sum of digits of $N$?

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