Task: Program Execution
Input (English): 3, 4, ['J', '1007', '1127', 'M']
Output (English): 1127, M