Task: Program Execution
Input (English): [14, 1236, 1336, 558, 15]
Output (English): [16, 1024, 1024, 512, 16]