Task: Program Execution
Input (English): 9, 11, ['3823', '8347', '1457', 'R', 'b', 'R', '2109', 'Z', 'G', '3365', '8541', '1281', '9459', '2711']
Output (English): 8541, 3365, G