PROGRAMMING:Seeking the minimum and the second minimum
This topic requires n integers to be read in and the minimum number of comparisons to be used to output their minimum and minor values. For example, for the six numbers 12 13 1 10 34 1, the minimum value is 1, the second smallest value
10.
###Input format:
There are two lines of input. The first line is the number of integers n (≤ 1 000 000), and the second line is the number of integers separated by spaces.
###Output format:
For each group of input, output the minimum value and the second minimum value in a line, separated by a space in the middle, but there is no extra space at the end of the line. If the input data is less than two, "invalid input" is output. If there is no minor value, "there is no second small element" is output.
###Input example:
```in
six
12 13 1 10 34 1
```
###Output example:
```out
1 10
```
answer:If there is no answer, please comment
10.
###Input format:
There are two lines of input. The first line is the number of integers n (≤ 1 000 000), and the second line is the number of integers separated by spaces.
###Output format:
For each group of input, output the minimum value and the second minimum value in a line, separated by a space in the middle, but there is no extra space at the end of the line. If the input data is less than two, "invalid input" is output. If there is no minor value, "there is no second small element" is output.
###Input example:
```in
six
12 13 1 10 34 1
```
###Output example:
```out
1 10
```
answer:If there is no answer, please comment