Task: Program Execution
Input (English): 2, 3, ['5149', 'M', 'B', 'c', 'Z', 'z']
Output (English): 0