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