Print the random array in ascending order.
Don't use
Print the random array in ascending order.
Don't use
The input consists of n (0<n<10) samples.
Each sample consists two lines.
The first line of each sample consists of the number N (ranges from 1 to 1050).
The second line of each sample consists of N integers of an array (range from 1 to 1000) .
The last line of input consists of Int(-1).
输入
5 492 903 668 570 424 10 859 254 796 175 169 946 372 936 839 943 20 463 558 801 107 827 827 325 279 570 892 882 80 812 639 383 903 131 285 922 52 -1
输出
424 492 570 668 903 169 175 254 372 796 839 859 936 943 946 52 80 107 131 279 285 325 383 463 558 570 639 801 812 827 827 882 892 903 922