Task: Program Execution
Input (English): 1, 1, ['2787', 'E', 'C', '6623', 'Z', '7797', '2407']
Output (English): 2787