Task: Program Execution
Input (English): 3, 3, ['Q', 'b', '3897']
Output (English): 3897