#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;
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+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CmludCBtYWluKCkgewogIGludCAqYXJyID0gbmV3IGludFsxNV07CgogIGZvciAoaW50IGkgPSAwOyBpIDwgNTsgaSsrKQogICAgYXJyW2ldID0gMiAqIGk7CgogIGZvciAoaW50IGkgPSAwOyBpIDwgNTsgaSsrKQogICAgY291dCA8PCBhcnJbaV0gPDwgIiAiOwogIGNvdXQgPDwgZW5kbDsKCiAgZGVsZXRlW10gYXJyOwoKICBmb3IgKGludCBpID0gMDsgaSA8IDU7IGkrKykKICAgIGFycltpXSA9IDMgKiBpICsgMTsKCiAgZm9yIChpbnQgaSA9IDA7IGkgPCA1OyBpKyspCiAgICBjb3V0IDw8IGFycltpXSA8PCAiICI7CiAgY291dCA8PCBlbmRsOwoKICByZXR1cm4gMDsKfQ==