#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main()
{
char str[5];
int n;
scanf( "%d",&n );
for( ; n > 0 ; n-- )
{
scanf( "%s",str);
if( strlen(str) > 3 )
printf( "3\n" );
else
if((( str[0] == 'o' ) && ( str[1] == 'n'))||(( str[2] == 'e' ) && ( str[1] == 'n'))||(( str[0] == 'o' ) && ( str[2] == 'e')))
printf("1\n");
else
printf( "2\n" );
}
system( "pause" );
return 0;
}
转载于:https://www.cnblogs.com/zsj576637357/archive/2011/11/16/2250539.html