#K46982. Rearrange Sentence

    ID: 28097 Type: Default 1000ms 256MiB

Rearrange Sentence

Rearrange Sentence

Given a sentence, rearrange each word so that the letters in the word are in alphabetical order. That is, for any word w with characters \(c_1, c_2, \dots, c_n\), output a new word whose characters are sorted in ascending order. If the input is empty, the output should be an empty string.

inputFormat

The input consists of a single line containing a sentence. The words in the sentence are separated by spaces.

outputFormat

Output a single line where each word has its letters rearranged in alphabetical (lexicographical) order.

## sample
hello world
ehllo dlorw