#K4866. Find the Hidden Array

    ID: 28470 Type: Default 1000ms 256MiB

Find the Hidden Array

Find the Hidden Array

You are given an integer \(n\) representing the number of elements in a hidden array. The hidden array consists of \(n\) integers. Your task is to recover the entire array by reading the input and then printing it in a specific format.

The output must start with an exclamation mark (!), followed by a space and then the \(n\) array elements, separated by a single space. Ensure that your solution is efficient and can handle large inputs.

Note: All formulas are in \(\LaTeX\) format.

inputFormat

The first line contains a single integer \(n\) (\(1 \le n \le 10^5\)), the number of elements in the hidden array.

The second line contains \(n\) space-separated integers representing the elements of the hidden array.

outputFormat

Output a single line starting with an exclamation mark (!) and a space, followed by the \(n\) integers of the array separated by single spaces.

## sample
5
3 5 8 12 15
! 3 5 8 12 15