Task: Program Execution
Input (English): 2, ['A', 'b', 'R', '4107']
Output (English): R, 4107