Task: Program Execution
Input (English): 5, 5, ['R', 'r', 'q', '2005', 'g', '5499', 'Q', '8355']
Output (English): g