#C13388. Character Count in String

    ID: 42920 Type: Default 1000ms 256MiB

Character Count in String

Character Count in String

Given a string s, count the frequency of each unique character in s. The count is case-sensitive, meaning that characters such as 'a' and 'A' are treated as different. The output should be a dictionary in the Python style, where each key is a character (enclosed in single quotes) and its corresponding value is the number of times it appears in s. In mathematical terms, for each character \(c\) in s, its frequency is given by: $$f(c) = \text{number of occurrences of } c \text{ in } s.$$

The dictionary should list the characters in the order of their first appearance in the input string.

inputFormat

The input consists of a single line that contains the string s.

outputFormat

Output a single line: a dictionary in the Python style showing the frequency of each character. The format should be exactly as follows: {'char1': count1, 'char2': count2, ...} with the keys appearing in the order that they first appear in s.

## sample
abc
{'a': 1, 'b': 1, 'c': 1}