A simple change

Just change the numbers in the most efficient way ...

Input

1024 2048 3072 4096 5120
6144 7168 8192 9216

Output

2048 3072 4096 5120 6144
7168 8192 9216 10240