18. (10 points) A three-digit number $A$ is such that the difference between the largest and smallest three-digit numbers formed by its digits is still $A$. What is this number $A$?

---

The translation maintains the original format and line breaks as requested.