Introduction of the line, representing the surname, name, patronymic
(three words which are divided by the single gaps blank), at the beginning and
at the end of the line there are no gaps) to replace the line by the line with
the surname and initials. To remove the initials through the gap with full
stops. If the introductory line is empty there is nothing to remove, if
only the surname to remove only the surname; if the surname and the name are
introduced – to remove the surname and the first letter of the name with a full
stop. Do not change registry of the letters.The surname, name, patronymic can celect a lot of the single gaps blank. Unnecessary single gaps blank delete
input data
line of
the symbol (surname, name, patronymic)
output data
line of
the symbol (surname with initials)
example input data
Petrov
Vladimir Ivanovich
example output data
Petrov V.
I.
author: Zibjuk T.V.