#P12363. Sort Letters of a String

    ID: 14464 Type: Default 1000ms 256MiB

Sort Letters of a String

Sort Letters of a String

Given a string consisting of uppercase English letters, sort its characters in alphabetical order.

For example, LANQIAO becomes AAILNOQ, and GOODGOODSTUDYDAYDAYUP becomes AADDDDDGGOOOOPSTUUYYY.

Determine the result after sorting the following string:

$$\tt{WHERETHEREISAWILLTHEREISAWAY}$$

inputFormat

The input consists of a single line containing a string S of uppercase English letters.

outputFormat

Output the string after sorting its characters in alphabetical order.

sample

LANQIAO
AAILNOQ