#PCBTAM0000004. Họ và tên theo định dạng (Surname and Given Name)
Họ và tên theo định dạng (Surname and Given Name)
Surname and Given Name
Version: Phuoc Hung OJ Extended
Problem Statement
A person's surname and given name are supplied on separate lines. Combine them in the following order: surname, comma, one space, given name.
Do not put a space before the comma. Preserve all Vietnamese characters.
Input
The first line contains surname ; the second contains given name . Both fields are nonempty.
Output
Print one line in the exact format surname, given name, inserting exactly one space after the comma.
Subtasks
- Subtask 1 (100 points): characters.
Examples
Example 1
Input
Nguyen
An
Output
Nguyen, An
Explanation. Join surname Nguyen, comma-space, and given name An to get Nguyen, An.
Example 2
Input
Lê
Bình
Output
Lê, Bình
Explanation. Preserve Vietnamese characters in Lê and Bình, inserting only comma-space.
Example 3
Input
A
B
Output
A, B
Explanation. The single-character fields A and B produce A, B.