#K40707. Character Count

    ID: 26702 Type: Default 1000ms 256MiB

Character Count

Character Count

Given a string s, write a program that counts the frequency of each alphabetic character, ignoring the case (i.e. 'A' and 'a' are considered identical) and any non-alphabetic characters.

The output should be a dictionary (in the format of a Python dictionary) showing each character and its count. The order of the keys in the dictionary must be the order in which they first appear in s.

Note: The dictionary must be printed exactly in the Python literal style, for example:

For input Hello, World!, the output is:

{'h': 1, 'e': 1, 'l': 3, 'o': 2, 'w': 1, 'r': 1, 'd': 1}

inputFormat

The input consists of a single line containing the string s.

outputFormat

Print a dictionary (in Python format) representing the count of each alphabetical character in the order of its first appearance, ignoring case and non-alphabet characters.

## sample
Hello, World!
{'h': 1, 'e': 1, 'l': 3, 'o': 2, 'w': 1, 'r': 1, 'd': 1}