Hərflərin çeşidlənməsi#8316

Hərflərin çeşidlənməsi

1 saniyə
128 meqabayt
Çox asan

Yalnız kiçik latın hərflərindən ibarət bir sətir verilir. Bu sətirdəki hərfləri əvvəlcə artan, sonra isə azalan şəkildə ASCII kodlarına görə sıralayın.

InputThe input contains a single line consisting of no more than lowercase Latin letters ('a'–'z').

OutputOn the first line, print the letters of the string sorted in ascending ASCII order; on the second line, print them in descending ASCII order.

Nümunələr

Nümunə 1

Loading
Loading