s=input("input a string:\n")
alpha=space=digit=another=0
for i in s:
if i.isalpha():
alpha+=1
elif i.isspace():
space+=1
elif i.isdigit():
digit+=1
else :
another+=1
print("字符个数为:%d\n空格个数为:%d\n数字个数为:%d\n其他字符个数为:%d\n"%(alpha,space,digit,another))