Task: Program Execution
Input (English): 2, 3, ['Q', 'P', 'q', 's', '2571', '8813', '181', 'V', 'Z', '8913', 'n', 'C']
Output (English): 0