There is a ten-digit number $X$ such that its first (left-most) digit is equal to the number of $0$s in $X$, the second digit gives the number of $1$s in $X$, and so on. The last (right-most) digit gives the number of $9$s in $X$. Find $X$.
Aren't there a lot of possibilities for a solution?
No. There is exactly one.
+1 to Amulya for an interesting question.
+1 to ipoteka for doing it the hard way :)
Output: