Min, Max and Sum
Write a program which reads a sequence of n integers ai(i=1,2,...n), and prints the minimum value, maximum value and sum of the sequence.
5
10 1 5 4 17
1 17 37
0<n<=10000
-1000000<=ai<=1000000