Task: Program Execution
Input (English): [29, 1291, 3954, 1682, 6, 51, 3]
Output (English): [32, 1024, 4096, 2048, 8, 64, 4]