////////////////////
char c;
int handan = TRUE;
while((c = getchar()) != EOF)
{
if(c == '\0') break;
else if( c < '0' || c > '9') { handan = FALSE; break; }
}

////////////////////
int isKimeraretaMoji(char c);
char c;
int handan = TRUE;
while((c = getchar()) != EOF)
{
if(c == '\0') break;
else if( !isKimeraretaMoji(c) ) { handan = FALSE; break; }
}