Task: Program Execution
Input (English): 2, ['1823', 'K', 'R', 'x']
Output (English): 1823, R