#K74187. Case-Insensitive Character Frequency

    ID: 34142 Type: Default 1000ms 256MiB

Case-Insensitive Character Frequency

Case-Insensitive Character Frequency

Given several input strings, compute the frequency of each alphabet letter from all the strings combined, ignoring case. Only alphabetical characters are counted.

The output should be a JSON object with keys as lowercase letters (in alphabetical order) and values as their respective counts.

inputFormat

The first line contains a single integer T (with T ≥ 1) representing the number of strings. Each of the next T lines contains a string.

outputFormat

Output a single line containing a JSON object representing the frequency of each alphabet letter (in lowercase) found in the input. The keys (letters) must appear in alphabetical order.

## sample
1
hello
{"e":1,"h":1,"l":2,"o":1}