#!/usr/bin/python

transliteration = { 	
		' ':' ',	# space 
		'\'':'', 	# Punctuation shewa
		'3':'&#1488;',
		'4':'&#1488;', 	# alef
		'b':'&#1489;',	# beit 
		'g':'&#1490;',	# gimel 
		'd':'&#1491;',	# dalet 
		'h':'&#1492;',	# hei
		'v':'&#1493;', 	# vav
		'z':'&#1494;', 	# zayin
		'H':'&#1495;', 	# Het
		'T':'&#1496;',	# tet
		'y':'&#1497;', 	# yod
		'K':'&#1498;',	# Final kaf
		'k':'&#1499;',	# kaf
		'l':'&#1500;', 	# lamed 
		'M':'&#1501;', 	# Final mem
		'm':'&#1502;', 	# mem 
		'N':'&#1503;', 	# Final nun 
		'n':'&#1504;', 	# nun 
		's':'&#1505;', 	# sameH
		'Y':'&#1506;', 	# ayin
		'P':'&#1507;', 	# Final pe
		'p':'&#1508;', 	# pe 
		'X':'&#1509;', 	# Final tsadi 
		'x':'&#1510;', 	# tsadi 
		'q':'&#1511;', 	# qof 
		'r':'&#1512;', 	# resh 
		'w':'&#1513;', 	# shin 
		'sh':'&#1513;', # shin
		't':'&#1514;',	# tav
		'-':'&#1470;', 	# Punctuation maqaf
		':':'&#1475;'	# Punctuation sof pasuq
		} 

def isvowel(c) :
	return c in "aeiouAEIOU"

def hasfinalform(c) :
	return c in "kmnpx"

def createhebrew(s) :
	hebrews = ""
	numchars = len(s)
	if s[numchars-1] != ':' : 
		s+=':'
		numchars += 1
	i = 0;
	while i != numchars: 
		if not isvowel(s[i]):
			if s[i] == 's' and s[i+1] == 'h':
				hebrews += transliteration['sh']
				i+=2
				continue
			if hasfinalform(s[i]) and (s[i+1] == ':' or s[i+1] == ' ') :
				hebrews += transliteration[s[i].upper()]
				i+=1
				continue
			hebrews += transliteration[s[i]]
		i+=1
	return hebrews

data = ""
while data != "quit" : 
	data = raw_input(">> ")
	if data != "quit" : print(createhebrew(data))
