Task: Program Execution
Input (English): 4, 5, ['3683', 'm', 'c', '6049', 'p', '2989']
Output (English): 6049