Task: Program Execution
Input (English): 1, 8, ['M', 'm', 'R', '7639', 'Z', '6281', '1091', 'v', '2243', '5125', 'R', 'K', '235', '9707', 'U', '3455']
Output (English): 15011