14395 - 计数排序

给出n个数字,请你将他们按小到大的顺序排好

Input

一个整数n,代表有n个非负整数 (1<=n<=1e8)

一行整数,每个整数之间用空格隔开,保证每个整数的大小不大于1000

Output

Examples

Input

10
2 5 2 2 5 2 2 2 1 2

Output

1 2 2 2 2 2 2 2 5 5
Time Limit 1 second
Memory Limit 128 MB
Discuss Stats
上一题 下一题