#C11717. Character Frequency Counter

    ID: 41064 Type: Default 1000ms 256MiB

Character Frequency Counter

Character Frequency Counter

Given a string \(S\), count the frequency of each distinct character in \(S\). Uppercase and lowercase letters are treated as distinct. The result should be output in the order in which the characters first appear in the input.

For example, if \(S = \texttt{hello}\), then the expected output is h:1 e:1 l:2 o:1.

inputFormat

The input consists of a single line containing the string \(S\). The string may include alphabets, digits, symbols, and spaces.

outputFormat

Print the frequency count for each distinct character as they appear in \(S\). Each character and its count should be printed in the format character:count, with each pair separated by a space. If the input string is empty, print an empty line.

## sample
hello
h:1 e:1 l:2 o:1