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

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