#C1506. Character Frequency Counter

    ID: 44719 Type: Default 1000ms 256MiB

Character Frequency Counter

Character Frequency Counter

Given an input string S, count the frequency of each character in the string. The counting is case-sensitive and includes all characters (letters, digits, whitespace, and special characters).

The output should display each unique character (in the order they first appear in the string) followed by its frequency. Each result should be printed on a new line in the format:

character frequency

For example, if the input is hello, the output should be:

h 1
e 1
l 2
o 1

inputFormat

The input consists of a single line containing the string S. The string may contain letters, digits, spaces, and special characters.

outputFormat

For every unique character in S (in the order of its first occurrence), print a line containing the character, a space, and the number of times it occurs in the string.

## sample
hello
h 1

e 1 l 2 o 1

</p>