print ("please enter text. Hit return key after entering text:")

# Make a big string called text containing the enter text input by user
# It is convinient to tranform all letters to lower case letters
line = raw_input().lower()
text = ""
while line:
        text = text + line
        line = raw_input().lower()
        
# Iterate over all lower case letters counting their occurences
for i in range(ord("a"), ord("z")+1):         
        print chr(i), "occurs", text.count(chr(i)), "times"
