#P1177. Sort N Numbers

    ID: 13864 Type: Default 1000ms 256MiB

Sort N Numbers

Sort N Numbers

Given N integers, sort them in ascending order.

Your task is to read the input, sort the provided numbers, and output the sorted sequence.

inputFormat

The input consists of two lines:

  • The first line contains a single integer N, which represents the number of elements.
  • The second line contains N space-separated integers.

outputFormat

Output the N sorted integers in ascending order separated by a single space.

sample

5
3 1 2 5 4
1 2 3 4 5