# AC - compare strings
import sys
t = 1
while True:

	line = input()
	
	if line == '#':
		sys.exit(0)
	elif line == 'HELLO':
		print('Case %d: ENGLISH' % t)
	elif line == 'HOLA':
		print('Case %d: SPANISH'% t)
	elif line == 'HALLO':
		print('Case %d: GERMAN'% t)
	elif line == 'BONJOUR':
		print('Case %d: FRENCH'% t)
	elif line == 'CIAO':
		print('Case %d: ITALIAN'% t)
	elif line == 'ZDRAVSTVUJTE':
		print('Case %d: RUSSIAN'% t)
	else:
		print('Case %d: UNKNOWN'% t)
	t += 1
95b1150df09c005313d54086f380fae09eaf44e2
<mask token>

<mask token>
while True:
    line = input()
    if line == '#':
        sys.exit(0)
    elif line == 'HELLO':
        print('Case %d: ENGLISH' % t)
    elif line == 'HOLA':
        print('Case %d: SPANISH' % t)
    elif line == 'HALLO':
        print('Case %d: GERMAN' % t)
    elif line == 'BONJOUR':
        print('Case %d: FRENCH' % t)
    elif line == 'CIAO':
        print('Case %d: ITALIAN' % t)
    elif line == 'ZDRAVSTVUJTE':
        print('Case %d: RUSSIAN' % t)
    else:
        print('Case %d: UNKNOWN' % t)
    t += 1

<mask token>
t = 1
while True:
    line = input()
    if line == '#':
        sys.exit(0)
    elif line == 'HELLO':
        print('Case %d: ENGLISH' % t)
    elif line == 'HOLA':
        print('Case %d: SPANISH' % t)
    elif line == 'HALLO':
        print('Case %d: GERMAN' % t)
    elif line == 'BONJOUR':
        print('Case %d: FRENCH' % t)
    elif line == 'CIAO':
        print('Case %d: ITALIAN' % t)
    elif line == 'ZDRAVSTVUJTE':
        print('Case %d: RUSSIAN' % t)
    else:
        print('Case %d: UNKNOWN' % t)
    t += 1

import sys
t = 1
while True:
    line = input()
    if line == '#':
        sys.exit(0)
    elif line == 'HELLO':
        print('Case %d: ENGLISH' % t)
    elif line == 'HOLA':
        print('Case %d: SPANISH' % t)
    elif line == 'HALLO':
        print('Case %d: GERMAN' % t)
    elif line == 'BONJOUR':
        print('Case %d: FRENCH' % t)
    elif line == 'CIAO':
        print('Case %d: ITALIAN' % t)
    elif line == 'ZDRAVSTVUJTE':
        print('Case %d: RUSSIAN' % t)
    else:
        print('Case %d: UNKNOWN' % t)
    t += 1

# AC - compare strings
import sys
t = 1
while True:

	line = input()
	
	if line == '#':
		sys.exit(0)
	elif line == 'HELLO':
		print('Case %d: ENGLISH' % t)
	elif line == 'HOLA':
		print('Case %d: SPANISH'% t)
	elif line == 'HALLO':
		print('Case %d: GERMAN'% t)
	elif line == 'BONJOUR':
		print('Case %d: FRENCH'% t)
	elif line == 'CIAO':
		print('Case %d: ITALIAN'% t)
	elif line == 'ZDRAVSTVUJTE':
		print('Case %d: RUSSIAN'% t)
	else:
		print('Case %d: UNKNOWN'% t)
	t += 1