Task: Program Execution
Input (English): 6, 10, ['X', '6789', 'n', 'l', '5233', '5391', 'B', '1137', 'i', 'j', '4237']
Output (English): 5391B1137ij