Task: Program Execution
Input (English): [31, 871, 2997, 2869, 16]
Output (English): [32, 1024, 2048, 2048, 16]