Write a program which reads integers until 0 is read. Then finds the minimum and maximum of these integers (except 0), multiplies them with the number of integers entered (except 0), and prints the results on the screen. Assume only positive integers smaller than 10000 will be entered.

For example, in the first input/output example, the minimum is 2, the maximum is 9, the number of integers entered is 6. Therefore, the outputs are 12 and 54, since 2*6 is 12 and 9*6 is 54.

Examples:
INPUT OUTPUT
3 4 7 2 8 9 0
12 54
12 10 7 5 19 6 2 22 0
16 176
1 1 1 5 5 5 0
6 30


Important issues about all exams/projects/quizzes: