Frequency Analysis
Very easy
Execution time limit is 3 seconds
Runtime memory usage limit is 64 megabytes
Sort all the words in the given text by their frequency of occurrence in ascending order. If two words have the same frequency, sort them in lexicographical order.
Input
The input consists of a text with words separated by spaces and newlines.
Output
Output the sorted list of words, with each word on a new line.
Examples
Input #1
Answer #1
Submissions 253
Acceptance rate 51%