#include <iostream>
#include <string>
#include <map>
#include <set>
using namespace std;

int main() {
  set<string> dic;
  map<string, int> letter;
  string word;
  while (cin >> word) {
    dic.insert(word);
    letter[word]++;
  }
  for (set<string>::iterator it = dic.begin(); it != dic.end(); it++)
    cout << "map[\"" << *it << "\"] = " << letter[*it] << endl;
  return 0;
}
