시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 1024 MB0000.000%

문제

Research often involves dealing with large quantities of data, and those data are often too massive to examine manually. Statistical descriptions of data can help humans understand their basic properties. Consider a sample of n numbers X = (x1, x2, . . . , xn). Of many statistics that can be computed on X, some of the most important are the following:

  • min(X): the smallest value in X
  • max(X): the largest value in X
  • range(X): max(X) − min(X)

Write a program that will analyze samples of data and report these values for each sample.

입력

Each test case is described by one line of input, which begins with an integer 1 ≤ n ≤ 30 and is followed by n integers which make up the sample to be analyzed. Each value in the sample will be in the range -1,000,000 to 1,000,000.

출력

For each case, display the case number followed by the min, max, and range of the sample (in that order). Follow the format of the sample output.

예제 입력 1

2 4 10
9 2 5 6 4 5 9 2 1 4
7 6 10 1 2 5 10 9
1 9

예제 출력 1

Case 1: 4 10 6
Case 2: 1 9 8
Case 3: 1 10 9
Case 4: 9 9 0