Kaprekar 6174

Enter 4 digits (leading zeros allowed). Output is the minimal trace: DESC - ASC = RESULT.

Input

Constraint: not all 4 digits identical (e.g. 0000, 1111) because it collapses to 0000 and never reaches 6174.
Type a 4-digit number to generate the trace.