file = open('input.csv', 'r')
#file.write('Текст українською')
lines_list = file.read().split("\n")
lines_list.pop()
for counter in range(len(lines_list)):
lines_list[counter] = lines_list[counter].split(';')
print(lines_list)
for line in lines_list:
for counter in range(len(line)):
line[counter] = line[counter].strip(" ")
if line[1][-2:] == "ся":
line[1] = line[1][:-2]
line[1] = line[1][:-2]