Task: Program Execution
Input (English): 2, 10, ['R', 'D', 'd', '8473', '7559', 'P', '5357', '4473', 'b', 'D', 'C', '1287']
Output (English): D, b, 4473, 5357, P, 7559, 8473, d, D