Task: Program Execution
Input (English): 6, 8, ['r', 'm', '1847', '1833', '9071', '8871', '4637', 'n', '9739', 'H']
Output (English): n, 4637, 8871