Task: Program Execution
Input (English): 2, 4, ['n', 'm', '3497', '8989', 'n']
Output (English): m, 3497, 8989