#K57177. Most Popular Word Finder
Most Popular Word Finder
Most Popular Word Finder
This problem requires you to determine the most frequently occurring word in a given text. The text is provided via standard input, and words are defined as contiguous sequences of alphabetic characters. All non-letter characters (including punctuation and numbers) should be treated as delimiters. The comparison is case-insensitive: for example, "Hello" and "hello" are considered the same word. In case of a tie (i.e., two or more words having the same highest frequency), return the word that appears first in the input.
Note: Any mathematical formula should be represented in \( \LaTeX \) format. However, this problem does not require any formula.
inputFormat
The input consists of one or more lines that together form a single text. The text may contain letters, spaces, punctuation marks, and other non-alphabetic characters.
outputFormat
Output the most popular word according to the problem conditions. The word should be printed to standard output.
## sampleHello, hello! How are you? I said hello.
hello