#include <bits/stdc++.h>
using namespace std;
int main() {
int *arr = new int[15];
for (int i = 0; i < 5; i++)
arr[i] = 2 * i;
for (int i = 0; i < 5; i++)
cout << arr[i] << " ";
cout << endl;
delete[] arr;
arr = NULL;
for (int i = 0; i < 5; i++)
arr[i] = 3 * i + 1;
for (int i = 0; i < 5; i++)
cout << arr[i] << " ";
cout << endl;
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CmludCBtYWluKCkgewogIGludCAqYXJyID0gbmV3IGludFsxNV07CgogIGZvciAoaW50IGkgPSAwOyBpIDwgNTsgaSsrKQogICAgYXJyW2ldID0gMiAqIGk7CgogIGZvciAoaW50IGkgPSAwOyBpIDwgNTsgaSsrKQogICAgY291dCA8PCBhcnJbaV0gPDwgIiAiOwogIGNvdXQgPDwgZW5kbDsKCiAgZGVsZXRlW10gYXJyOwogIGFyciA9IE5VTEw7CgogIGZvciAoaW50IGkgPSAwOyBpIDwgNTsgaSsrKQogICAgYXJyW2ldID0gMyAqIGkgKyAxOwoKICBmb3IgKGludCBpID0gMDsgaSA8IDU7IGkrKykKICAgIGNvdXQgPDwgYXJyW2ldIDw8ICIgIjsKICBjb3V0IDw8IGVuZGw7CgogIHJldHVybiAwOwp9