Task: Program Execution
Input (English): 9, 13, ['p', 'R', '3789', '1553', '9085', '249', '2895', '9605', 'M', 'Q', 'C', '8795', '1477', '7387']
Output (English): 1477, 8795, C, Q, M