#include <stdio.h>
int main()
{
	char s[20];
	char num=0;
	int num_count=0;
	int space_count=0;
	int other_count=0;
	while((num=getchar())!='\n')
	{
		 if(num>='0'&&num<='9')
          {
             num_count++;
          }
          else if(num==' ')   
          {
             space_count++;
          }
          else
          {
             other_count++;
          }	
	}
	printf("num_count=%d\n",num_count);
	printf("space_count=%d\n",space_count);
	printf("other_count=%d\n",other_count);
	return 0;
}