A three-digit number XYZ is formed of three different non-zero digits X,Y and Z. A new number is formed by rearranging the same three digits. What is the greatest possible difference between the two numbers? (For example, 345 could be rearranged into 435, for a difference of 435−345=90.)