A three-level PAM system is used to transmit the output of a memoryless ternary source whose rate is 2000 symbols/sec. The signal constellation is shown in Figure P-8.34. Determine the input to the detector, the optimum threshold that minimizes the average probability of error, and the average probability of error.