The results of each of the N teams participating in the running championship are known. Determine the time of the teams in the top three (teams could finish the distance at the same time).
Input data: in the first line enter the number N - the number of teams (3< N<= 100), and then N integers - the finish time of each team
Output: print three numbers separated by a space - the answer to the problem in order of increasing time
Examples
# |
Input |
Output |
1 |
7
3
1
6
2
4
5
4 |
1 2 3 |
Запрещенные операторы:list;[;sort