
fil_obj = open("004.txt", encoding='UTF-8')
fil_obj2 = open("004_rus.txt", "w", encoding='UTF-8')
lst1 = fil_obj.read().split()
# print(lst1)
i = 0
j = 0
while j < len(lst1):
    i += 0
    p = lst1[j]

    if p == 'One':
        fil_obj2.write('Один ')
    elif p == 'Two':
        fil_obj2.write('Два ')
    elif p == 'Three':
        fil_obj2.write('Три ')
    elif p == 'Four':
        fil_obj2.write('Четыре ')
    elif p == '1':
        fil_obj2.write(p + '\n')
    elif p == '2':
        fil_obj2.write(p + '\n')
    elif p == '3':
        fil_obj2.write(p + '\n')
    elif p == '4':
        fil_obj2.write(p + '\n')
    else:
        fil_obj2.write(' ' + p + ' ')



    j += 1


fil_obj2.close()
fil_obj.close()