Problem

Source:

Tags: number theory



Let $S(n)$ denote the sum of digits of a natural number $n$. Find all $n$ for which $n+S(n)=2004$.