#include<stdio.h>
#include<string.h>
int main()
{
long long int count=0;
char string[15];
while(gets(string))
{
count++;
if(strcmp(string,"#")==0)
{
break;
}
else if(strcmp(string,"HELLO")==0)
{
printf("Case %lld: ENGLISH\n",count);
}
else if(strcmp(string,"HOLA")==0)
{
printf("Case %lld: SPANISH\n",count);
}
else if(strcmp(string,"HALLO")==0)
{
printf("Case %lld: GERMAN\n",count);
}
else if(strcmp(string,"BONJOUR")==0)
{
printf("Case %lld: FRENCH\n",count);
}
else if(strcmp(string,"CIAO")==0)
{
printf("Case %lld: ITALIAN\n",count);
}
else if(strcmp(string,"ZDRAVSTVUJTE")==0)
{
printf("Case %lld: RUSSIAN\n",count);
}
else
{
printf("Case %lld: UNKNOWN\n",count);
}
}
return 0;
}