Task: Program Execution
Input (English): [8, 1018, 2957, 1242, 19, 84, 2, 29, 1197, 136, 567, 22, 83, 2]
Output (English): [8, 1024, 2048, 1024, 16, 64, 2, 32, 1024, 128, 512, 16, 64, 2]