package M1;
import java.util.Scanner;
public class Seven {
public static void main(String[] args) {
Scanner in=new Scanner(System.in);
String str=in.nextLine();//一定要用nextLine否则空格之后的就接受不到了
int English=0;
int space=0;
int others=0;
int nums=0;
for (int i = (str.length()-1); i >=0 ; i--) {
char a=str.charAt(i);
if((a>='a'&&a<='z')||(a>='A'&&a<='Z')){English++;}
else if(a==' '){space++;}
else if(a>='0'||a<='9'){nums++;}
else {others++;}
}
System.out.println("英文字母"+English+"数字"+nums+"空格"+space+"其他"+others);
}
}