Write the second smallest 7-digit number having four different digits.
The smallest 4 digit number with different digits is _______________