The number of numbers with 0 in the unit’s place is 3!=6.
The number of numbers with 1 or 2 or 3 in the unit’s place is 3!−2!=4. Therefore, the sum of the digits in the unit’s place is 6×0+4×1+4×2+4×3=24.
Similarly, for the ten’s and hundred’s places, the number of numbers with 1 or 2 in the thousand’s place is 3! Therefore, the sum of the digits in the thousand’s place is 6×1+6×2+6×3=36.
Hence, the required sum is 36×1000+24×100+24×10+24.