Task: Program Execution
Input (English): 3, 7, ['R', '6949', 'Q', '1791', 'N', '1777', '4835', '6757', 'X', '8215', 'j', 'B', '4351']
Output (English): 53847771N1971Q