import java.util.Scanner;
public class benxi {
public static void main(String[] args) {
//键盘录入字符串 统计大写字符 小写字符 数字字符各出现多少次
//键盘录入字符串
Scanner sc=new Scanner(System.in);
System.out.println("请输入一个字符串");
String c=sc.next();
//统计大写字符 小写字符 数字 定义计数器
int bigchar=0;
int smallchar=0;
int number=0;
//遍历字符串
for (int i = 0; i < c.length(); i++) {
//遍历出来字符串索引对应的东西
char zf=c.charAt(i);
if (zf>='a'&&zf<='z'){
smallchar++;
}else if (zf>='A'&&zf<='Z'){
bigchar++;
}else if (zf>'0'&&zf<'9'){
number++;
}
}
System.out.println("大写字符有"+bigchar);
System.out.println("小写字符有"+smallchar);
System.out.println("数字有"+number);
}
}