#include <iostream>
#include <fstream>
#include <map>
#include <string>
int main()
{
std::map<std::string, int> dictionary;
//std::ifstream input("fruits.txt");
std::string word;
while (std::cin >> word)
dictionary[word]++;
for(const auto& e: dictionary)
std::cout << e.first << ": " << e.second << '\n';
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8ZnN0cmVhbT4KI2luY2x1ZGUgPG1hcD4KI2luY2x1ZGUgPHN0cmluZz4KCgppbnQgbWFpbigpCnsKICAgIHN0ZDo6bWFwPHN0ZDo6c3RyaW5nLCBpbnQ+IGRpY3Rpb25hcnk7CiAgICAvL3N0ZDo6aWZzdHJlYW0gaW5wdXQoImZydWl0cy50eHQiKTsKICAgIHN0ZDo6c3RyaW5nIHdvcmQ7CiAgICB3aGlsZSAoc3RkOjpjaW4gPj4gd29yZCkKICAgICAgICBkaWN0aW9uYXJ5W3dvcmRdKys7CiAgICBmb3IoY29uc3QgYXV0byYgZTogZGljdGlvbmFyeSkKICAgICAgICBzdGQ6OmNvdXQgPDwgZS5maXJzdCA8PCAiOiAiIDw8IGUuc2Vjb25kIDw8ICdcbic7Cn0=