Task: Program Execution
Input (English): 2, 4, ['F', '6487', '1797', '905', '4119']
Output (English): 9189