ÀÂÒ
Language:

Remote Training on Programming

Problems On-line status Contests FAQ
For authors:
Register  ||  Login
 
Hello, Guest! Login or register.

629. fio

Time Limit: 1 seconds
Memory Limit:1000KB
Points:2
View Problem Statistics Submit Problem added Undefined

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.


View Problem Statistics Submit Author/source:
Educational Courses / New problems in testing /
630. electrical 629. 633. list of multiplication 635. massivchik 636. matrix
We can all benefit by doing occasional "toy" programs, when artificial restrictions are set up, so that we are forced to push our abilities to the limit. The art of tackling miniproblems with all our energy will sharpen our talents for the real problems. Donald E. Knuth.
time generating 0.062 sec.
© Copyright VSTU, AVT, Nosov D.A.