Task: Program Execution
Input (English): 3, 8, ['s', '8395', '7689', 'x', 'P', '5953', 'X', 'D']
Output (English): DX3595Px9867