#include <iostream>
#include <memory>
using namespace std;
int main() {
int N;
cin >> N;
{
// Declare a unique_ptr to manage a dynamic integer buffer
// Allocate memory for N integers
unique_ptr<int[]> ptr1(new int[N]);
for (int i = 0; i < N; i++) {
int temp;
cin >> temp;
// Store value in the buffer
ptr1[i] = temp;
}
for (int i = 0; i < N; i++) {
// Print buffer values
cout << ptr1[i];
if (i != N - 1) cout << " ";
}
cout << endl;
}
cout << "Scope ended" << endl;
return 0;
}