n = int(input())t = map(int,input().split())t1 = sorted(t)print(t1)
4 10 13 12 8
[8, 10, 12, 13]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!