Task: Program Execution
Input (English): 5, 5, ['1141', 'C', 'r', 'T', '9815', 'N', '4919', 'Q']
Output (English): 9815