Task: Program Execution
Input (English): 6, 6, ['n', '9615', '721', '7701', 'm', '541', 'I', '5435', '7011', 'K', '3499', '5897']
Output (English): 541