#C5661. Lexicographically Sorted Word

    ID: 49335 Type: Default 1000ms 256MiB

Lexicographically Sorted Word

Lexicographically Sorted Word

Given a word, your task is to output a new string where the characters of the input word are sorted in lexicographical order. This means that you should rearrange the letters of the word in increasing alphabetical order.

For example, if the input is "python", the output should be "hnopty".

Note: The input may contain an empty string. In that case, simply output an empty string.

inputFormat

The input consists of a single line containing a string word. This string may contain only lowercase letters. Read the input from standard input (stdin).

outputFormat

Output a single line which is the characters of the input string sorted in lexicographical order. The output should be printed to standard output (stdout).## sample

helloworld
dehllloorw