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 input | standart output |
| Ivanov Petr Vasilyevich |
Ivanov P.V. |
| Almuhametov Irek Aydarovich |
Almuhametov I.A. |
Для отправки решений необходимо выполнить вход.
|