#include<stdio.h> int main() { int a=0,b=0,c=0,d=0; char e; while((e=getchar())!='\n') { if((e>='a'&&e<='z')||(e>='A'&&e<='Z')) a++; else if(e>='0'&&e<='9') b++; else if(e==' ') c++; else d++; } printf("%d %d %d %d",a,b,c,d); return 0; }