Task: Program Execution
Input (English): 2, 3, ['7849', '2079', 'R', '9335', '1505', '8835', 'Q', 't', '2729', '659', 'w', '4939', 'I']
Output (English): R9702