Task: Program Execution
Input (English): 5, 6, ['3587', '1239', '919', 'I', '5137', 'g', 'R']
Output (English): 5137