#!/usr/bin/env python
# -*- coding: utf-8 -*-
# 问题:给出一个字符串,分别输出该字符串中小写字母,大写字母,数字,以及其他字符串的个数
chuan = "aasdhauADSGFTHFTdbhi1224324汉字"
len_lower = 0
len_upper = 0
len_digit = 0
for i in chuan:
if i.islower():
len_lower += 1
if i.isupper():
len_upper += 1
if i.isdigit():
len_digit += 1
len_other = len(chuan) - len_lower - len_upper - len_digit
print len_lower
print len_upper
print len_digit
print len_other