Task: Program Execution
Input (English): 3, 6, ['K', '2943', '8359', 'E', '2895', 'x']
Output (English): 8359E2895x