Task: Program Execution
Input (English): [165, 12, 165, 35, 18]
Output (English): [496, 6, 496, 106, 9]