Task: Program Execution
Input (English): 2, 5, ['3107', 'h', '5917', 'o', 'I', '7853', '7487', '3213']
Output (English): 5917