Read from standard input a non-negative integer n followed by n integers, separated by spaces or newlines. Print on a single line, separated by spaces: the sum, the minimum value, and the maximum value of the n numbers.
Data is read from standard input (in the format described), not from a file. The format reproduces the typical content of a text file from the BAC exam, adapted for standard input.