Task: Program Execution
Input (English): 6, 10, ['d', '9485', 'R', '4729', '8813', '1187', 'c', '9773', 'p', 'x', 'C', '4219']
Output (English): 1187, c, 9773, p, x