#C12494. Character Frequency Count

    ID: 41927 Type: Default 1000ms 256MiB

Character Frequency Count

Character Frequency Count

Given a string, count the frequency of every character in the string (including punctuation and spaces). The output should list each unique character along with its frequency, in the order of their first appearance in the string.

For example, if the input is "Hello, World!", the output should be:

H 1
e 1
l 3
o 2
, 1
  1
W 1
r 1
d 1
! 1

inputFormat

The input consists of a single line containing a string. This string may include letters, digits, punctuation marks, and spaces.

outputFormat

Output the frequency of each character on separate lines. Each line must contain the character followed by a space and its count. The characters must be printed in the order of their first occurrence in the input string.

## sample
a
a 1