Task: Program Execution
Input (English): 5, 6, ['x', '5327', 'g', '1985', 'I', '4789', '5723', 'R', 'R', '2243', 'V', '5937']
Output (English): 4789I