#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
auto wsk = std::make_unique<int32_t[]>(N);
for (int i = 0; i < N; i++) {
int temp;
cin >> temp;
wsk[i] = temp;
// Store value in the buffer
}
for (int i = 0; i < N; i++) {
cout << wsk[i];
// Print buffer values
if (i != N - 1) cout << " ";
}
cout << endl;
}
cout << "Scope ended" << endl;
return 0;
}