# encoding: utf-8

#reating dictionary
#if 0 - quit
#if terminput - trnslate
#you can reaasign value to a key
#you can add new key
#you can delete key

print '''
いらつしやい!
0 - Exit
1 - Enter your English word to get Japanese equivalent
2 - Enter your Japanese word to get English equivalent
3 - Add new Japanese word to dictionary and set it's translation
4 - Change definition of Japanese word in the dictionary
5 - Delete words from dictionary
'''
slogodictionary = {'so':'そ', 'wo':'を', 'no':'の', 'to':'と', 'ko':'こ', 'ro':'ろ', 'ho':'ほ', 'mo':'も', 'yo':'よ', 'o':'お', 'a':'あ', 'ka':'か', 'ta':'た', 'sa':'ち', 'ma':'ま', 'na':'な', 'ha':'は', 'ya':'や', 'wa':'わ', 'ra':'ら', 'n':'ん', 'e':'え', 'ke':'け', 'se':'せ', 'te':'て', 'ne':'ね', 're':'れ', 'he':'へ', 'me':'め', 'i':'い', 'ki':'き', 'hi':'ひ', 'ni':'に', 'mi':'み', 'shi':'し', 'chi':'ち', 'ri':'リ', 'u':'う'}

t = None
t1 = None
t2 = None
t22 = None
slogodictionary1 = None
inv_map = {v: k for k, v in slogodictionary.items()}
print inv_map
print len(inv_map)
list1 = slogodictionary.keys()
list2 = slogodictionary.values()
print list1
#for v in list2:
#	print v
dict2 = {}
x = 0
#print len(slogodictionary.values())
while True:
	if x < len(slogodictionary.values()):
		term = list2[x]
		value = list1[x]
		dict2[term] = value
		x += 1		
		print len(dict2)
		
	if x == len(slogodictionary.values()):
		break
		
#while True: 
#	if t != 0:
#		t = int(raw_input('Enter your choice of action between 0 and 5\n'))
#	if t == 1:
#		t1 = raw_input('Enter your English word here\n')
#		if t1 in slogodictionary:
#			print slogodictionary[t1]	
#	if t == 3:
#		t2 = raw_input('Enter you Japanese word with Hiragana symbols\n')
#		t22 = raw_input('Enter the translation value of this Hiragana word\n')
#			if t2 not in slogodictionary:
#				slogodictionary[t2] = t22
#			print t2, 'and', slogodictionary[t2], 'has been updated!'		
#	
	

print 'さよなら！'


raw_input('\n\nP')

	
