Problem

2 /10


Letter frequencies

Problem

Arbitrary alphanumeric characters are given as input to the program. The input of these characters ends with a dot. It is required to write a program that will print a sequence of lowercase English letters ('a' 'b'... 'z') from the input sequence and frequency of their repetition. Printing must occur in alphabetical order.
For example, let the following characters be input: fhb5kbfыshfm.
In this case, the program should output:
b2
f3
h2
k1
m1
s1