Task: Program Execution
Input (English): 2, 6, ['4765', '4517', 'R', '2125', '6787', '6437']
Output (English): 4517R212567876437