#include<stdio.h>
int main()
{
char str[100],*p;
int sum,sum2;
sum=sum2=0;
scanf("%s",str);
for(p=str;*p!=0;p++)
{
if(*p>='a'&&*p<='z'||*p>='A'&&*p<='Z') sum++;
else if(*p>='0'&&*p<='9') sum2++;
}
printf("the number is %d\nthe char is %d\n",sum2,sum);
return 0;
}