Put the words in the logical order