#include "stdio.h"
#include "string.h"
int getType(char ch)
{
int type=-1;
if(ch>='A'&&ch<='Z')
{
type=1;
}
else if(ch>='a'&&ch<='z')
{
type=2;
}
else if(ch>='0'&&ch<='9')
{
type=3;
}
return type;
}
void main()
{
int i,c,len,j;
char str[100],ch;
gets(str);
len=strlen(str);
for(i=0;i