HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Unsorted > problem:


Short name

Section problems

• IOI 2014 Gandola
• Integer to English words / Санды т...
• J. Rag
• J. Вода
• K. Vampire
• Keyboard Row
• a
• a
• Short name
• Shymbulak
• Sultan's game
• Sum of digits
• Train
• Word Break
• XOR
• sravnenie
• Variant 1

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 200/400/400/400 ms. Memory limit 65000/65000/65000/65000 Kb.

Full name in Russian language consists of surname, name and middle name (father name). But usually short form of full name is used, which is surname followed by first letter of name and first letter of middle name. Write a program that converts full name to short form.

Input
Three words separated with one space, surname, name
and middle name

Output
Short form, as shown in examples

Examples

standart inputstandart output
Ivanov Petr Vasilyevich Ivanov P.V.
Almuhametov Irek Aydarovich Almuhametov I.A.
Для отправки решений необходимо выполнить вход.

www.contester.ru