'use strict';
function main(input) {
  const args =input.split('\n'),
        N = parseInt(args[0]),
        S = args[1].slice(1, N+1);
  let characterSets = new Map();
  for (let i = 0; i < N; ++i) {
    let string = S[i];
    let characterSet = new Map();
    for (let character of string) {
      if (!characterSet.has(character)) {
        characterSet.set(character, 1);
      } else {
        let tmp = characterSet.get(character) +1;
        characterSet.set(character, tmp);
      }
    }
    characterSets.set(i, characterSet);
  }
  console.log(characterSets);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));