5 3 abc aaaaa xyz a def
aaaaa abc xyz This contest had five participants. The participants ranked first, second, third, fourth, and fifth had the nicknames `abc`, `aaaaa`, `xyz`, `a`, and `def`, respectively. The nicknames of the top three participants were `abc`, `aaaaa`, `xyz`, so print these in lexicographical order: `aaaaa`, `abc`, `xyz`.
4 4 z zyx zzz rbg
rbg z zyx zzz
3 1 abc arc agc
abc
{
"problem": {
"name": "Qualification Contest",
"description": {
"content": "There were $N$ participants in a contest. The participant ranked $i$\\-th had the nickname $S_i$. Print the nicknames of the top $K$ participants in **lexicographical order**. What is lexicographical",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc288_b"
},
"statements": [
{
"statement_type": "Markdown",
"content": "There were $N$ participants in a contest. The participant ranked $i$\\-th had the nickname $S_i$. \nPrint the nicknames of the top $K$ participants in **lexicographical order**.\nWhat is lexicographical...",
"is_translate": false,
"language": "English"
}
]
}