if __name__ == '__main__': n = int(input()) array = list(map(int, input().split())) res = quicksort(array) for i in res: print(i, end=' ')