HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Chapter 1. Introduction to programming > problem:


09. Name-Surname

Volume problems

• 01. Hello World!
• 02. Arithmetic Operators
• 03. Rectangle
• 04. Circle
• 05. ASCII Characters
• 06. Sum of digits
• 07. Area of triangle
• 08. Hypotenuse
• 09. Name-Surname
• 10. Short name
• 11. Timer

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.

As a rule in Russian language we say Ivanov Petr (surname first then name). While in English it is convenient to say Petr Ivanov. Write a program to change order of given surname and name.

Input
Two words separated with one or several spaces, surname and name

Output
Two words separated with one space, name and surname

Examples

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

www.contester.ru