Task: Program Execution
Input (English): 2, 5, ['W', '5189', 'D', '9949', '1511', 'x', '6749']
Output (English): 5189D99491511