s = str(input()) list = [] count_al = count_di = count_sp = count_ot = 0 for i in s: list.append(i) for j in list: if j.isalpha(): count_al += 1 elif j.isdigit(): count_di += 1 elif j.isspace(): count_sp += 1 else: count_ot += 1 print('alpha: %s'%count_al) print('digit: %s'%count_di) print('space: %s'%count_sp) print('other: %s'%count_ot)