Task: Program Execution
Input (English): 4, 4, ['J', '9493', '4491', '6703', '3939', 'q', 'V', 'F', 'U', 'D', 'U', '2273', '321', 'C', '4195', 'l', 'b', 'l', '2571']
Output (English): 3076