A club of young code-breaking enthusiasts is building software to decrypt an ancient manuscript. The heart of the system will be a self-learning text analyzer, and its first module, a 'letter counter', has been entrusted to you.
Write a program that:
The first line contains an integer N, the number of text lines to analyze (N≤150). Each of the next N lines contains a string of at most 200 characters made up of lowercase and uppercase Latin letters ('a'..'z', 'A'..'Z') and spaces.
For the letters 'a' through 'z' and then 'A' through 'Z' (in that order), print one line for each letter that appears in the text: the letter, a single space, and the number of times it occurs. Skip any letter that does not appear in the text.