la={"HELLO":"ENGLISH","HOLA":"SPANISH","HALLO":"GERMAN","BONJOUR":"FRENCH","CIAO":"ITALIAN","ZDRAVSTVUJTE":"RUSSIAN"}
i=0
while True:
i+=1
n=input()
if n=='#':
break
t=la[n] if n in la else "UNKNOWN"
print(f"Case {i}: {t}")