Consider every four-digit number that can be formed by using each of the digits 0,1,2,3 exactly once. A number whose first digit is 0 is not a four-digit number and is not counted. Using the contribution of each digit to each place value, find the sum S of all such four-digit numbers. Which one of the following is the value of S?