Task: Program Execution
Input (English): 3, 4, ['P', '4163', '2087', '7137', '9875', 'V', '2881', '7523', '2613', '5711', 'M', '8829']
Output (English): 71372087