from sys import argv

script, filename = argv

f = open(filename)
letters = f.read()
f.close()

letters = letters.lower()

alphabet = [0] * 26

for letter in letters:
    # if the character is between a and z, add 1 to that position in the alphbet list
    if ord(letter) >= ord('a') and ord(letter) <= ord('z'):
        index = ord(letter) - 97
        alphabet[index] += 1
    else:
    # if the character is not between a and z, pass
        pass

for i in range (len(alphabet)):
    # comment out line 24 to print appropriately for 'spark'
    # print chr(i + 97), 
    print alphabet[i]