#C14940. Character Frequency Counter

    ID: 44645 Type: Default 1000ms 256MiB

Character Frequency Counter

Character Frequency Counter

Given a string, your task is to compute the frequency of each character in the string after converting all characters to lowercase and removing all spaces. The output should list the characters in alphabetical order followed by their corresponding frequency counts. Formally, for an input string \( s \), you need to compute for each character \( c \) in \( s \) (ignoring spaces and case) its frequency \( f(c) \).

inputFormat

The input consists of a single line containing the string \( s \). The string may include letters, digits, spaces, and special characters. Note that spaces should be ignored in the frequency calculation.

outputFormat

Output each character (other than space) present in the string in alphabetical order. For each character, print the character followed by a space and its frequency count on a separate line. If the string is empty, do not produce any output.

## sample
Hello World
d 1

e 1 h 1 l 3 o 2 r 1 w 1

</p>