while True: try: s = input() l = [0]*4 for i in s: if i.isalpha(): l[0]+=1 elif i.isnumeric(): l[2]+=1 elif i == " ": l[1]+=1 elif not i.isalnum(): l[3]+=1 for i in l: print(i) except: break
while True: try: s = input() l = [0]*4 for i in s: if i.isalpha(): l[0]+=1 elif i.isnumeric(): l[2]+=1 elif i == " ": l[1]+=1 elif not i.isalnum(): l[3]+=1 for i in l: print(i) except: break