Task: Program Execution
Input (English): 4, 5, ['R', '7867', 'I', '4661', 'z', 'B', '777', '4149', 'q']
Output (English): z, 4661