import java.util.Scanner;
public class OS3 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("请输入字符");
String s = sc.nextLine();
int T = 0;//统计大写字母的数量
int t = 0;//统计小写字母的数量
for (int i = 0; i < s.length(); i++) {
char c = s.charAt(i);
if(c<='z' && c>='a') {
t++;
}else if(c>='A' && c<='Z') {
T++;
}
}
System.out.println("字母个数为:"+(t+T));
}
}