```python
a = input("please input a string:")
alpha = 0
digit = 0
space = 0
other = 0
for i in a:
if a.isalpha():
alpha += 1
elif a.isdigit():
digit += 1
elif a.isspace():
space += 1
else:
other += 1
print(alpha,digit,space,other)