Digit substitution in a subtraction problem