def count_str(str_in):
    up_count = 0
    low_count = 0
    for i in str_in:#for循环遍历   
        if i.isupper():#语句判断
            up_count += 1
        elif i.islower:
            low_count += 1
        else:
            continue
    return up_count,low_count


str_cuunted = input("请输入字符串:")

up_count,low_count = count_str(str_cuunted)
print("大写字母有{}个".format(up_count))
print("小写字母有{}个".format(low_count))