{"trustable":true,"sections":[{"title":"","value":{"format":"MD","content":"A string consisting of lowercase Latin letters is given. Sort its letters in ascending and then in descending lexicographical order.\r\n\r\n#### Input\r\nOne line that contains no more than **100** lowercase Latin letters \u0027**a**\u0027 - \u0027**z**\u0027.\r\n\r\n#### Output\r\nIn the first line, output the sorted input string in non-decreasing order of its ASCII codes. In the second line, output the sorted input string in non-increasing order of its ASCII codes."}},{"title":"Example","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003eqwerty\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eeqrtwy\r\nywtrqe\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}