Python:
text="привет это Светлана. Привет Марина. Hello Marina"
name=[]
punctuation = [',', '.', '!', '...', '?', ';', ':']
name_first = str()
for i in range(2,(int(len(str(text))-1))):
if str(text)[i] != str(text)[i].lower():
for u in range(i,int(len(str(text)))):
print(str(text)[u])
if u == 0:
break
else:
if str(text)[u] == " ":
u -= 1
elif str(text)[u] == ".":
break
else:
u == 0
for y in range(i+1,int(len(str(text)))):
if str(text)[y] != " " or str(text)[int(y)] != str(punctuation):
name_first = str(text)[int(y),int(i)]
print(name_first)
name.apped(name_first)
break
else:
y+=1
else:
i+=1
print(name)