Task: Program Execution
Input (English): 3, 5, ['e', 'P', '3313', '8677', 'H', '4325', '3997', 'M', '6389', '3041']
Output (English): 11990