/**
* @param args
*/
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s = sc.nextLine();
int big = 0;
int small = 0;
int num = 0;
int other = 0;
for (int i = 0; i < s.length(); i++) {
char c = s.charAt(i);
if (c>='A'&&c<='Z'){
big++;
}else if(c>='a'&&c<='z'){
small++;
}else if(c>='1'&&c<='9'){
num++;
}else{
other++;
}
}
System.out.println("大写:"+big+"个");
System.out.println("小写:"+small+"个");
System.out.println("数字:"+num+"个");
}
}