How many positive integers are there less than 1000000 (a million), such that:

  1. its digits are all distinct;
  2. it is even;
  3. have exactly 3 identical digits.

Handle each condition independently.

Updated: