import java.util.Scanner;
public class Main{
public static void main
(String[] args
){ Scanner sc
=new Scanner
(System.
in);System.
out.
println("数字个数"+CountInt
(str
)+"大写字母个数"+CountBig
(str
)+"小写字母个数"+CountSmall
(str
));
}
public static int CountInt
(String str
){ int count=0;
for(int i=0;i<str.length();i++){
char c=str.charAt(i);
if(c >=48&&c<=57){
count++;
}
}
return count;
}
public static int CountBig
(String str
){ int count=0;
for(int i=0;i<str.length();i++){
char c=str.charAt(i);
if(c >=65&&c<=90){
count++;
}
}
return count;
}
public static int CountSmall
(String str
){ int count=0;
for(int i=0;i<str.length();i++){
char c=str.charAt(i);
if(c >=97&&c<=122){
count++;
}
}
return count;
}
}
aW1wb3J0IGphdmEudXRpbC5TY2FubmVyOwpwdWJsaWMgY2xhc3MgTWFpbnsKICBwdWJsaWMgIHN0YXRpYyB2b2lkIG1haW4oU3RyaW5nW10gICAgICAgYXJncyl7ClNjYW5uZXIgc2M9bmV3IFNjYW5uZXIoU3lzdGVtLmluKTsKU3RyaW5nIHN0cj1zYy5uZXh0KCk7ClN5c3RlbS5vdXQucHJpbnRsbigi5pWw5a2X5Liq5pWwIitDb3VudEludChzdHIpKyLlpKflhpnlrZfmr43kuKrmlbAiK0NvdW50QmlnKHN0cikrIuWwj+WGmeWtl+avjeS4quaVsCIrQ291bnRTbWFsbChzdHIpKTsKCn0KcHVibGljIHN0YXRpYyBpbnQgQ291bnRJbnQoU3RyaW5nIHN0cil7CmludCBjb3VudD0wOwpmb3IoaW50IGk9MDtpPHN0ci5sZW5ndGgoKTtpKyspewpjaGFyIGM9c3RyLmNoYXJBdChpKTsKaWYoYyA+PTQ4JiZjPD01Nyl7CmNvdW50Kys7Cn0KfQpyZXR1cm4gY291bnQ7Cn0KcHVibGljIHN0YXRpYyBpbnQgQ291bnRCaWcoU3RyaW5nIHN0cil7CmludCBjb3VudD0wOwpmb3IoaW50IGk9MDtpPHN0ci5sZW5ndGgoKTtpKyspewpjaGFyIGM9c3RyLmNoYXJBdChpKTsKaWYoYyA+PTY1JiZjPD05MCl7CmNvdW50Kys7Cn0KfQpyZXR1cm4gY291bnQ7Cn0KcHVibGljIHN0YXRpYyBpbnQgQ291bnRTbWFsbChTdHJpbmcgc3RyKXsKaW50IGNvdW50PTA7CmZvcihpbnQgaT0wO2k8c3RyLmxlbmd0aCgpO2krKyl7CmNoYXIgYz1zdHIuY2hhckF0KGkpOwppZihjID49OTcmJmM8PTEyMil7CmNvdW50Kys7Cn0KfQpyZXR1cm4gY291bnQ7Cn0KfQ==