#PCBNAM0000010. Kích thước và dãy số nguyên (Array Size and Integers)
Kích thước và dãy số nguyên (Array Size and Integers)
Array Size and Integers
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
The first line gives the number of elements , and the second line contains exactly integers. Print on one line, followed by all elements in their original order and multiplicity on the next line.
Input
Line 1 contains integer . Line 2 contains exactly integers separated by whitespace.
Output
Line 1 prints . Line 2 prints , separated by exactly one space.
Subtasks
- Subtask 1 — 100 points: ; for all .
Examples
Input
5
3 1 4 1 5
Output
5
3 1 4 1 5
Explanation
The first line gives . The second line splits into five tokens: 3, 1, 4, 1, 5. Integer conversion creates a list preserving their order. The program prints 5 first. Then print(*values) supplies its five elements as separate arguments, producing 3 1 4 1 5.