Task: Program Execution
Input (English): [7, 1500, 4534, 586, 22, 40, 3]
Output (English): [8, 1024, 4096, 512, 16, 32, 4]