I - Sorting by ASCII

Languages: C, C++, Java, Python, Kotlin
Time & Memory limits: (details)

Input

Output

Sample test(s)

Input
4 abD ABC ABCA aaa
--- Showing first 30 lines (click "Copy" to get full content) ---
Output
ABC abD ABCA aaa
--- Showing first 30 lines (click "Copy" to get full content) ---
Input
3 cbAdefg Adbcefg gfedbcA
--- Showing first 30 lines (click "Copy" to get full content) ---
Output
cbAdefg Adbcefg gfedbcA
--- Showing first 30 lines (click "Copy" to get full content) ---

Notes