from collections import Counter
for s, count in sorted(Counter(input().strip('.').lower().split()).items()): print(s + ':' + str(count))