#C14022. Character Frequency Counter

    ID: 43626 Type: Default 1000ms 256MiB

Character Frequency Counter

Character Frequency Counter

The task is to compute the frequency of each character in a given string while ignoring any spaces. The result should be printed in a dictionary-like format where each key is a character and its corresponding value is the count of occurrences in the string. The order of the characters in the output should be the same as the order in which they first appear in the input.

For a character c, its frequency is defined as:

$$f(c)=\text{number of times }c\text{ appears in the string}$$

Example:

Input:  hello world
Output: {'h': 1, 'e': 1, 'l': 3, 'o': 2, 'w': 1, 'r': 1, 'd': 1}

inputFormat

The input consists of a single line containing a string. The string may include spaces. All input is read from standard input.

outputFormat

Output a dictionary-like string representation (similar to Python's dictionary literal) of character frequencies. Spaces are ignored. The output is printed to standard output.

## sample
hello world
{'h': 1, 'e': 1, 'l': 3, 'o': 2, 'w': 1, 'r': 1, 'd': 1}