Task: Program Execution
Input (English): 2, 4, ['7887', 'x', '3749', 'N', 'U', '2971']
Output (English): N3749x