TopCoder

Thumb funny avengers gif america ass
呵呵好喔
取出水壺 打開瓶蓋 操課後飲水 500cc 少量多次 喝水 喝水不複誦

User's AC Ratio

100.0% (12/12)

Submission's AC Ratio

40.9% (18/44)

Tags

Description

We define that a < z < b < y < c < x < ........

Give you N strings(contains lowercase letters only), can you sort them?

Input Format

a postive integer N, no more than 1000.
and then N strings, each string is non-empty and its length will not greater than 1000.

Output Format

please sort them and output these N strings, one per line.

Sample Input

3
aaa
yaa
zaa

Sample Output

aaa
zaa
yaa

Hints

Problem Source

原TIOJ1585 / Problem setter: akira

Subtasks

For Testdata: 0 ~ 0, Score: 100
No. Time Limit (ms) Memory Limit (KiB)
0 2000 65536